mirror of
https://github.com/labring/FastGPT.git
synced 2026-05-06 01:02:54 +08:00
4fbe27f2df
* activity points * modal * ui * fix * pref: zod schema * perf: ad api with zod * perf: plan year switch * perf: plan * i18n * fix: hook * fix: activity checker * fix: i18n * fix clear token * fix * back * can close modal in pay * ad token * rename * fix * total points * eng i18n --------- Co-authored-by: archer <545436317@qq.com>
25 lines
633 B
TypeScript
25 lines
633 B
TypeScript
import type { StandardSubLevelEnum, SubModeEnum } from './constants';
|
|
|
|
export type StandardSubPlanParams = {
|
|
level: `${StandardSubLevelEnum}`;
|
|
mode: `${SubModeEnum}`;
|
|
};
|
|
|
|
export type StandardSubPlanUpdateResponse = {
|
|
balanceEnough: boolean; // team balance is enough
|
|
teamBalance: number;
|
|
payPrice?: number;
|
|
planPrice: number;
|
|
planPointPrice: number;
|
|
name?: string;
|
|
|
|
currentMode: `${SubModeEnum}`;
|
|
nextMode: `${SubModeEnum}`;
|
|
currentSubLevel: `${StandardSubLevelEnum}`;
|
|
nextSubLevel: `${StandardSubLevelEnum}`;
|
|
totalPoints: number;
|
|
surplusPoints: number;
|
|
planStartTime: Date;
|
|
planExpiredTime: Date;
|
|
};
|