2025-06-16 10:23:46 +00:00
|
|
|
import { Permission, Role, Edition } from '@/utils/permission/type'
|
2025-04-28 02:20:40 +00:00
|
|
|
const PermissionConst = {
|
|
|
|
|
USER_READ: new Permission('USER:READ'),
|
|
|
|
|
USER_CREATE: new Permission('USER:CREATE'),
|
|
|
|
|
KNOWLEDGE_READ: new Permission('KNOWLEDGE:READ'),
|
2025-06-16 09:02:36 +00:00
|
|
|
APPLICATION_OVERVIEW_READ: new Permission('APPLICATION_OVERVIEW_READ'),
|
2025-04-28 02:20:40 +00:00
|
|
|
}
|
2025-06-16 09:02:36 +00:00
|
|
|
const RoleConst = {
|
|
|
|
|
ADMIN: new Role('ADMIN'),
|
|
|
|
|
WORKSPACE_MANAGE: new Role('WORKSPACE_MANAGE'),
|
|
|
|
|
USER: new Role('USER'),
|
|
|
|
|
}
|
2025-06-16 10:23:46 +00:00
|
|
|
const EditionConst = {
|
|
|
|
|
IS_PE: new Edition('X-PACK-PE'),
|
|
|
|
|
IS_EE: new Edition('X-PACK-EE'),
|
|
|
|
|
IS_CE: new Edition('X-PACK-CE'),
|
|
|
|
|
}
|
|
|
|
|
export { PermissionConst, RoleConst, EditionConst }
|