mirror of
https://github.com/labring/FastGPT.git
synced 2025-10-15 15:41:05 +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
31 lines
831 B
TypeScript
31 lines
831 B
TypeScript
import { i18nT } from '../../../../web/i18n/utils';
|
|
import {
|
|
NullRoleVal,
|
|
CommonPerKeyEnum,
|
|
CommonRoleList,
|
|
CommonRolePerMap,
|
|
CommonPerList
|
|
} from '../constant';
|
|
import type { RolePerMapType } from '../type';
|
|
|
|
export const DatasetRoleList = {
|
|
[CommonPerKeyEnum.read]: {
|
|
...CommonRoleList[CommonPerKeyEnum.read],
|
|
description: i18nT('dataset:permission.des.read')
|
|
},
|
|
[CommonPerKeyEnum.write]: {
|
|
...CommonRoleList[CommonPerKeyEnum.write],
|
|
description: i18nT('dataset:permission.des.write')
|
|
},
|
|
[CommonPerKeyEnum.manage]: {
|
|
...CommonRoleList[CommonPerKeyEnum.manage],
|
|
description: i18nT('dataset:permission.des.manage')
|
|
}
|
|
};
|
|
|
|
export const DatasetRolePerMap: RolePerMapType = CommonRolePerMap;
|
|
|
|
export const DatasetPerList = CommonPerList;
|
|
|
|
export const DataSetDefaultRoleVal = NullRoleVal;
|