mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-23 13:03:50 +00:00
44 lines
970 B
TypeScript
44 lines
970 B
TypeScript
import { i18nT } from '../../../../web/i18n/utils';
|
|
|
|
export enum UsageSourceEnum {
|
|
fastgpt = 'fastgpt',
|
|
api = 'api',
|
|
shareLink = 'shareLink',
|
|
training = 'training',
|
|
cronJob = 'cronJob',
|
|
share = 'share',
|
|
wecom = 'wecom',
|
|
feishu = 'feishu',
|
|
official_account = 'official_account'
|
|
}
|
|
|
|
export const UsageSourceMap = {
|
|
[UsageSourceEnum.fastgpt]: {
|
|
label: '在线使用'
|
|
},
|
|
[UsageSourceEnum.api]: {
|
|
label: 'Api'
|
|
},
|
|
[UsageSourceEnum.shareLink]: {
|
|
label: '免登录链接'
|
|
},
|
|
[UsageSourceEnum.training]: {
|
|
label: 'dataset.Training Name'
|
|
},
|
|
[UsageSourceEnum.cronJob]: {
|
|
label: i18nT('common:cron_job_run_app')
|
|
},
|
|
[UsageSourceEnum.feishu]: {
|
|
label: i18nT('user:usage.feishu')
|
|
},
|
|
[UsageSourceEnum.official_account]: {
|
|
label: i18nT('user:usage.official_account')
|
|
},
|
|
[UsageSourceEnum.share]: {
|
|
label: i18nT('user:usage.share')
|
|
},
|
|
[UsageSourceEnum.wecom]: {
|
|
label: i18nT('user:usage.wecom')
|
|
}
|
|
};
|