request->param("roleName")); $where = []; if ($name) { $where = [["name", "like", "%" . $name . "%"]]; } $list = RoleApi::getList($where); return json($list); } /** * @auth {{/role/add}} * @return type */ public function add() { return view(); } /** * @auth {{/role/edit}} * @return type */ public function edit() { return view(); } /** * @auth {{/role/role_edit}} */ public function role_edit() { } /** * @auth {{/role/role_assign}} * @return type */ public function assign() { } /** * @auth {{/role/setAuthority}} */ public function set_authority() { } /** * @auth {{/role/remove}} */ public function remove() { } }