feat: 增加登录鉴权和固定角色权限
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user