重构角色和权限相关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

@@ -1,6 +1,5 @@
import type { ComponentPublicInstance } from "vue";
import type { Router } from "vue-router";
import { RoutePath } from "../router/constants";
import {
ForbiddenError,
InternalServerError,
@@ -9,6 +8,7 @@ import {
UnAuthError,
} from "../types/error";
import { z } from "zod";
import { Routes } from "../router/constants";
const makeErrorHandler =
(
@@ -31,7 +31,7 @@ const makeErrorHandler =
});
} else if (err instanceof UnAuthError) {
signOut();
router.push(RoutePath.LOGIN);
router.push(Routes.LOGIN.path);
showAlert({
level: "error",
content: err.message,