mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-23 13:03:50 +00:00
73 lines
1.9 KiB
TypeScript
73 lines
1.9 KiB
TypeScript
import { i18nT } from '../../../../web/i18n/utils';
|
|
|
|
export enum SubTypeEnum {
|
|
standard = 'standard',
|
|
extraDatasetSize = 'extraDatasetSize',
|
|
extraPoints = 'extraPoints'
|
|
}
|
|
|
|
export const subTypeMap = {
|
|
[SubTypeEnum.standard]: {
|
|
label: 'support.wallet.subscription.type.standard',
|
|
icon: 'support/account/plans'
|
|
},
|
|
[SubTypeEnum.extraDatasetSize]: {
|
|
label: 'support.wallet.subscription.type.extraDatasetSize',
|
|
icon: 'core/dataset/datasetLight'
|
|
},
|
|
[SubTypeEnum.extraPoints]: {
|
|
label: 'support.wallet.subscription.type.extraPoints',
|
|
icon: 'core/chat/chatLight'
|
|
}
|
|
};
|
|
|
|
export enum SubModeEnum {
|
|
month = 'month',
|
|
year = 'year'
|
|
}
|
|
export const subModeMap = {
|
|
[SubModeEnum.month]: {
|
|
label: 'support.wallet.subscription.mode.Month',
|
|
durationMonth: 1
|
|
},
|
|
[SubModeEnum.year]: {
|
|
label: 'support.wallet.subscription.mode.Year',
|
|
durationMonth: 12
|
|
}
|
|
};
|
|
|
|
export enum StandardSubLevelEnum {
|
|
free = 'free',
|
|
experience = 'experience',
|
|
team = 'team',
|
|
enterprise = 'enterprise',
|
|
custom = 'custom'
|
|
}
|
|
export const standardSubLevelMap = {
|
|
[StandardSubLevelEnum.free]: {
|
|
label: i18nT('common:support.wallet.subscription.standardSubLevel.free'),
|
|
desc: i18nT('common:support.wallet.subscription.standardSubLevel.free desc'),
|
|
weight: 1
|
|
},
|
|
[StandardSubLevelEnum.experience]: {
|
|
label: i18nT('common:support.wallet.subscription.standardSubLevel.experience'),
|
|
desc: '',
|
|
weight: 2
|
|
},
|
|
[StandardSubLevelEnum.team]: {
|
|
label: i18nT('common:support.wallet.subscription.standardSubLevel.team'),
|
|
desc: '',
|
|
weight: 3
|
|
},
|
|
[StandardSubLevelEnum.enterprise]: {
|
|
label: i18nT('common:support.wallet.subscription.standardSubLevel.enterprise'),
|
|
desc: '',
|
|
weight: 4
|
|
},
|
|
[StandardSubLevelEnum.custom]: {
|
|
label: i18nT('common:support.wallet.subscription.standardSubLevel.custom'),
|
|
desc: '',
|
|
weight: 5
|
|
}
|
|
};
|