|
|
|
@ -169,6 +169,28 @@ public class AuthAdminController {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@AuthRuleAnnotation("admin/auth/admin/customerRoles")
|
|
|
|
|
@GetMapping("/admin/auth/admin/customerRolesList")
|
|
|
|
|
public BaseResponse customerRolesList(@RequestParam(value = "page", defaultValue = "1") Integer page,
|
|
|
|
|
@RequestParam(value = "limit", defaultValue = "100") Integer limit) {
|
|
|
|
|
|
|
|
|
|
List<AuthRole> authRoleList = authRoleService.listCustomerRoles(page, limit, 1);
|
|
|
|
|
// List<AuthRole> authRoleList = authRoleService.listAuthRoles2(page, limit);
|
|
|
|
|
PageInfo<AuthRole> pageInfo = new PageInfo<>(authRoleList);
|
|
|
|
|
PageSimpleResponse<AuthAdminRoleResponse> pageSimpleResponse = new PageSimpleResponse<>();
|
|
|
|
|
pageSimpleResponse.setTotal(pageInfo.getTotal());
|
|
|
|
|
List<AuthAdminRoleResponse> authAdminRoleResponses = authRoleList.stream().map(e -> {
|
|
|
|
|
AuthAdminRoleResponse authAdminRoleResponse = new AuthAdminRoleResponse();
|
|
|
|
|
BeanUtils.copyProperties(e, authAdminRoleResponse);
|
|
|
|
|
return authAdminRoleResponse;
|
|
|
|
|
}).collect(Collectors.toList());
|
|
|
|
|
pageSimpleResponse.setList(authAdminRoleResponses);
|
|
|
|
|
|
|
|
|
|
return ResultVOUtils.success(pageSimpleResponse);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 新增
|
|
|
|
|
*
|
|
|
|
|