mirror of
https://github.com/labring/FastGPT.git
synced 2025-10-13 22:56:28 +00:00

* refactor: permission role * refactor: permission type * fix: permission manage * fix: group owner cannot be deleted * chore: common per map * chore: openapi * chore: rename * fix: type error * chore: app chat log permission * chore: add initv4112
24 lines
557 B
TypeScript
24 lines
557 B
TypeScript
import { CommonPerKeyEnum, CommonRoleList } from '../constant';
|
|
import { type RoleListType } from '../type';
|
|
|
|
export enum GroupMemberRole {
|
|
owner = 'owner',
|
|
admin = 'admin',
|
|
member = 'member'
|
|
}
|
|
|
|
export const memberGroupPermissionList: RoleListType = {
|
|
[CommonPerKeyEnum.read]: {
|
|
...CommonRoleList[CommonPerKeyEnum.read],
|
|
value: 0b100
|
|
},
|
|
[CommonPerKeyEnum.write]: {
|
|
...CommonRoleList[CommonPerKeyEnum.write],
|
|
value: 0b010
|
|
},
|
|
[CommonPerKeyEnum.manage]: {
|
|
...CommonRoleList[CommonPerKeyEnum.manage],
|
|
value: 0b001
|
|
}
|
|
};
|