feat(users): add user admin section and delegate login authorization to API

This commit is contained in:
2026-08-10 23:04:41 +08:00
parent 88039d9ebe
commit 04c12ad340
9 changed files with 6630 additions and 2500 deletions

View File

@ -36,6 +36,8 @@ export const PERM = {
ROLE_DELETE: 'auth:role:delete',
ROLE_ASSIGN: 'auth:role:assign',
PERMISSION_READ: 'auth:permission:read',
USER_READ: 'admin:user:read',
USER_MANAGE: 'admin:user:manage',
} as const
export type Permission = (typeof PERM)[keyof typeof PERM]