refactor: 迁移角色定义到src目录

This commit is contained in:
张翔
2026-04-05 09:12:15 +08:00
parent e63a23a4ad
commit cd1211702e
5 changed files with 0 additions and 0 deletions
@@ -0,0 +1,26 @@
import type { RoleDefinition } from './base.role';
export const UserRole: RoleDefinition = {
name: 'user',
displayName: '普通用户',
credentials: {
username: 'normaluser',
password: 'Test@123'
},
permissions: [
'user:read:self',
'user:update:self'
],
cannotAccess: [
'/user-management',
'/role-management',
'/menu-management',
'/system-config'
],
expectedBehaviors: {
canCreate: [],
canRead: ['self'],
canUpdate: ['self'],
canDelete: []
}
};