|
@@ -5,6 +5,7 @@ import cn.hfln.framework.catchlog.CatchAndLog;
|
|
import cn.hfln.framework.dto.ApiResult;
|
|
import cn.hfln.framework.dto.ApiResult;
|
|
import com.hfln.portal.common.dto.data.role.RoleListDTO;
|
|
import com.hfln.portal.common.dto.data.role.RoleListDTO;
|
|
import com.hfln.portal.common.request.web.AddRoleParam;
|
|
import com.hfln.portal.common.request.web.AddRoleParam;
|
|
|
|
+import com.hfln.portal.common.request.web.QueryRoleParam;
|
|
import com.hfln.portal.domain.gateway.WebGateway;
|
|
import com.hfln.portal.domain.gateway.WebGateway;
|
|
import io.swagger.v3.oas.annotations.Operation;
|
|
import io.swagger.v3.oas.annotations.Operation;
|
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
|
@@ -42,8 +43,8 @@ public class WebRoleController {
|
|
|
|
|
|
@GetMapping("/queryList")
|
|
@GetMapping("/queryList")
|
|
@Operation(summary = "获取角色列表")
|
|
@Operation(summary = "获取角色列表")
|
|
- public ApiResult<List<RoleListDTO>> roleList() {
|
|
|
|
- List<RoleListDTO> roleList = webGateway.roleList();
|
|
|
|
|
|
+ public ApiResult<List<RoleListDTO>> roleList(@RequestBody @Valid QueryRoleParam param) {
|
|
|
|
+ List<RoleListDTO> roleList = webGateway.roleList(param);
|
|
return ApiResult.success(roleList);
|
|
return ApiResult.success(roleList);
|
|
}
|
|
}
|
|
}
|
|
}
|