/**
  * 权限列表的api
  * 
  * @param        
  * 
  * @author        wen.zhou@bioon.com
  * 
  * @date        2015-10-18 20:36:51
  * 
  * @return        
  */
 public function getApirolelist()
 {
     /*获取参数*/
     $draw = request('draw', 1);
     $start = request('start', 0);
     $length = request('length', 10);
     $search = request('search.value', '');
     /*获取菜单*/
     $obj_role = new Role();
     $count = $obj_role->count();
     /*搜索*/
     if (!empty($search)) {
         $obj_role = $obj_role::where('name', 'like', '%{$search}%');
     }
     /*条数*/
     if ($length != -1) {
         $obj_role = $obj_role->offset($start)->limit($length);
     }
     $roles = $obj_role->get()->toArray();
     $returnData = ["draw" => $draw, "recordsTotal" => $count, "recordsFiltered" => $count, 'data' => $roles];
     return response()->json($returnData);
 }