refactor: 重构查询角色字典接口

This commit is contained in:
2024-06-05 20:58:50 +08:00
parent 1dbb33935a
commit 1e73d06a97
4 changed files with 5 additions and 19 deletions

View File

@@ -97,6 +97,8 @@ public class CommonController {
@GetMapping("/dict/role")
public R<List<LabelValueResp<Long>>> listRoleDict(RoleQuery query, SortQuery sortQuery) {
return R.ok(roleService.buildDict(roleService.list(query, sortQuery)));
public R<List<LabelValueResp>> listRoleDict(RoleQuery query, SortQuery sortQuery) {
return R.ok(roleService.listDict(query, sortQuery));
}
@Operation(summary = "查询字典", description = "查询字典列表")