重构角色和权限相关DTO,替换RoleDto为RoleRespDto,并更新相关服务和控制器逻辑

This commit is contained in:
Chuck1sn
2025-06-16 10:57:35 +08:00
parent 7b8ef54e7b
commit ea10b156e3
34 changed files with 543 additions and 405 deletions

View File

@@ -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", {