feat: 增加登录鉴权和固定角色权限

This commit is contained in:
湛兮
2026-05-26 12:14:33 +08:00
parent 643244abab
commit 55b99b5307
21 changed files with 957 additions and 250 deletions
+4
View File
@@ -32,3 +32,7 @@ export function internalServerError(message: string): HttpError {
export function unauthorized(message: string): HttpError {
return new HttpError(401, "UNAUTHORIZED", message);
}
export function forbidden(message: string): HttpError {
return new HttpError(403, "FORBIDDEN", message);
}