mirror of
https://github.com/labring/FastGPT.git
synced 2025-12-25 20:02:47 +00:00
standard plan add custom domain config
This commit is contained in:
parent
bdee2db74a
commit
e02e969fbe
|
|
@ -12,6 +12,7 @@ export type CustomSubConfig = {
|
|||
appRegistrationCount: number;
|
||||
auditLogStoreDuration: number;
|
||||
ticketResponseTime: number;
|
||||
customDomain: number;
|
||||
};
|
||||
|
||||
export type TeamCouponSub = {
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@ export type TeamStandardSubPlanItemType = {
|
|||
websiteSyncPerDataset?: number;
|
||||
auditLogStoreDuration?: number;
|
||||
ticketResponseTime?: number;
|
||||
customDomain?: number;
|
||||
|
||||
// Custom plan specific fields
|
||||
priceDescription?: string;
|
||||
|
|
@ -73,6 +74,7 @@ export type TeamSubSchema = {
|
|||
appRegistrationCount?: number;
|
||||
auditLogStoreDuration?: number;
|
||||
ticketResponseTime?: number;
|
||||
customDomain?: number;
|
||||
|
||||
totalPoints: number;
|
||||
surplusPoints: number;
|
||||
|
|
|
|||
|
|
@ -64,6 +64,7 @@ const SubSchema = new Schema({
|
|||
appRegistrationCount: Number,
|
||||
auditLogStoreDuration: Number,
|
||||
ticketResponseTime: Number,
|
||||
customDomain: Number,
|
||||
|
||||
// stand sub and extra points sub. Plan total points
|
||||
totalPoints: {
|
||||
|
|
|
|||
|
|
@ -74,7 +74,8 @@ export const getTeamStandPlan = async ({ teamId }: { teamId: string }) => {
|
|||
standard?.appRegistrationCount ?? standardConstants.appRegistrationCount,
|
||||
auditLogStoreDuration:
|
||||
standard?.auditLogStoreDuration ?? standardConstants.auditLogStoreDuration,
|
||||
ticketResponseTime: standard?.ticketResponseTime ?? standardConstants.ticketResponseTime
|
||||
ticketResponseTime: standard?.ticketResponseTime ?? standardConstants.ticketResponseTime,
|
||||
customDomain: standard?.customDomain ?? standardConstants.customDomain
|
||||
}
|
||||
: undefined
|
||||
};
|
||||
|
|
@ -210,7 +211,8 @@ export const getTeamPlanStatus = async ({
|
|||
auditLogStoreDuration:
|
||||
standardPlan?.auditLogStoreDuration ?? standardConstants.auditLogStoreDuration,
|
||||
ticketResponseTime:
|
||||
standardPlan?.ticketResponseTime ?? standardConstants.ticketResponseTime
|
||||
standardPlan?.ticketResponseTime ?? standardConstants.ticketResponseTime,
|
||||
customDomain: standardPlan?.customDomain ?? standardConstants.customDomain
|
||||
}
|
||||
: undefined,
|
||||
|
||||
|
|
|
|||
|
|
@ -1224,6 +1224,8 @@
|
|||
"support.wallet.subscription.function.Points": "{{amount}} points",
|
||||
"support.wallet.subscription.function.Requests per minute": "{{amount}} QPM",
|
||||
"support.wallet.subscription.function.Website sync per dataset": "Single knowledge base {{amount}} web pages synchronized",
|
||||
"support.wallet.subscription.function.Custom domain": "{{amount}} Custom domains",
|
||||
"support.wallet.subscription.function.custom domain tip": "The number of custom domains that a team can configure for binding independent domain names to access applications",
|
||||
"support.wallet.subscription.mode.Month": "Month",
|
||||
"support.wallet.subscription.mode.Period": "Subscription Period",
|
||||
"support.wallet.subscription.mode.Year": "Year",
|
||||
|
|
|
|||
|
|
@ -1233,6 +1233,8 @@
|
|||
"support.wallet.subscription.function.Requests per minute": "{{amount}} QPM",
|
||||
"support.wallet.subscription.function.Ticket response time": "{{amount}} 小时工单支持响应",
|
||||
"support.wallet.subscription.function.Website sync per dataset": "站点同步最大 {{amount}} 页",
|
||||
"support.wallet.subscription.function.Custom domain": "{{amount}} 个自定义域名",
|
||||
"support.wallet.subscription.function.custom domain tip": "团队可以配置的自定义域名数量,用于绑定独立域名访问应用",
|
||||
"support.wallet.subscription.function.qpm tip": "主要指团队每分钟请求 Agent 的最大次数,与单个 Agent 复杂度无关。其他 OpenAPI 接口也受此影响,每个接口单独计算",
|
||||
"support.wallet.subscription.mode.Month": "按月",
|
||||
"support.wallet.subscription.mode.Period": "订阅周期",
|
||||
|
|
|
|||
|
|
@ -775,11 +775,11 @@
|
|||
"create_success": "建立成功",
|
||||
"create_time": "建立時間",
|
||||
"cron_job_run_app": "排程任務",
|
||||
"custom_plan_price": "定制化計費",
|
||||
"custom_plan_feature_1": "優先深度技術支援",
|
||||
"custom_plan_feature_2": "專屬客戶經理",
|
||||
"custom_plan_feature_3": "彈性資源配置",
|
||||
"custom_plan_feature_4": "安全可控",
|
||||
"custom_plan_price": "定制化計費",
|
||||
"custom_title": "自訂標題",
|
||||
"data_index_custom": "自定義索引",
|
||||
"data_index_default": "預設索引",
|
||||
|
|
@ -1213,6 +1213,7 @@
|
|||
"support.wallet.subscription.Upgrade plan": "升級方案",
|
||||
"support.wallet.subscription.ai_model": "AI 語言模型",
|
||||
"support.wallet.subscription.function.Audit log store duration": "{{amount}} 天團隊操作日誌記錄",
|
||||
"support.wallet.subscription.function.Custom domain": "{{amount}} 個自定義域名",
|
||||
"support.wallet.subscription.function.History store": "{{amount}} 天對話紀錄保留",
|
||||
"support.wallet.subscription.function.Max app": "{{amount}} 個 Agent",
|
||||
"support.wallet.subscription.function.Max dataset": "{{amount}} 個知識庫",
|
||||
|
|
@ -1221,6 +1222,7 @@
|
|||
"support.wallet.subscription.function.Points": "{{amount}} 積分",
|
||||
"support.wallet.subscription.function.Requests per minute": "{{amount}} QPM",
|
||||
"support.wallet.subscription.function.Website sync per dataset": "單知識庫 {{amount}} 個網頁同步",
|
||||
"support.wallet.subscription.function.custom domain tip": "團隊可以配置的自定義域名數量,用於綁定獨立域名訪問應用",
|
||||
"support.wallet.subscription.mode.Month": "按月",
|
||||
"support.wallet.subscription.mode.Period": "訂閱週期",
|
||||
"support.wallet.subscription.mode.Year": "按年",
|
||||
|
|
|
|||
|
|
@ -46,7 +46,8 @@ const StandardPlanContentList = ({
|
|||
standplan?.chatHistoryStoreDuration ?? plan.chatHistoryStoreDuration,
|
||||
auditLogStoreDuration: standplan?.auditLogStoreDuration ?? plan.auditLogStoreDuration,
|
||||
appRegistrationCount: standplan?.appRegistrationCount ?? plan.appRegistrationCount,
|
||||
ticketResponseTime: standplan?.ticketResponseTime ?? plan.ticketResponseTime
|
||||
ticketResponseTime: standplan?.ticketResponseTime ?? plan.ticketResponseTime,
|
||||
customDomain: standplan?.customDomain ?? plan.customDomain
|
||||
};
|
||||
}, [
|
||||
subPlans?.standard,
|
||||
|
|
@ -62,7 +63,8 @@ const StandardPlanContentList = ({
|
|||
standplan?.chatHistoryStoreDuration,
|
||||
standplan?.auditLogStoreDuration,
|
||||
standplan?.appRegistrationCount,
|
||||
standplan?.ticketResponseTime
|
||||
standplan?.ticketResponseTime,
|
||||
standplan?.customDomain
|
||||
]);
|
||||
|
||||
return planContent ? (
|
||||
|
|
@ -175,6 +177,20 @@ const StandardPlanContentList = ({
|
|||
</Box>
|
||||
</Flex>
|
||||
)}
|
||||
{planContent.customDomain !== undefined && (
|
||||
<Flex alignItems={'center'}>
|
||||
<MyIcon name={'price/right'} w={'16px'} mr={3} />
|
||||
<Box color={'myGray.600'}>
|
||||
{t('common:support.wallet.subscription.function.Custom domain', {
|
||||
amount: planContent.customDomain
|
||||
})}
|
||||
</Box>
|
||||
<QuestionTip
|
||||
ml={1}
|
||||
label={t('common:support.wallet.subscription.function.custom domain tip')}
|
||||
/>
|
||||
</Flex>
|
||||
)}
|
||||
</Grid>
|
||||
) : null;
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue