mirror of
https://github.com/ccmjga/zhilu-admin
synced 2026-03-25 21:03:43 +08:00
重构角色和权限相关DTO,替换RoleDto为RoleRespDto,并更新相关服务和控制器逻辑
This commit is contained in:
@@ -4,8 +4,8 @@ import type { components } from "../../api/types/schema";
|
||||
|
||||
export const useRolesQuery = () => {
|
||||
const total = ref<number>(0);
|
||||
const roles = ref<components["schemas"]["RoleDto"][]>();
|
||||
const roleWithDetail = ref<components["schemas"]["RoleDto"]>();
|
||||
const roles = ref<components["schemas"]["RoleRespDto"][]>();
|
||||
const roleWithDetail = ref<components["schemas"]["RoleRespDto"]>();
|
||||
|
||||
const getRoleWithDetail = async (roleId: number) => {
|
||||
const { data } = await client.GET("/iam/role", {
|
||||
|
||||
Reference in New Issue
Block a user