mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-23 05:12:39 +00:00
28 lines
676 B
TypeScript
28 lines
676 B
TypeScript
import { StandardSubLevelEnum, SubModeEnum } from '../sub/constants';
|
|
import { BillTypeEnum } from './constants';
|
|
|
|
export type CreateStandPlanBill = {
|
|
type: BillTypeEnum.standSubPlan;
|
|
level: `${StandardSubLevelEnum}`;
|
|
subMode: `${SubModeEnum}`;
|
|
};
|
|
type CreateExtractPointsBill = {
|
|
type: BillTypeEnum.extraPoints;
|
|
extraPoints: number;
|
|
};
|
|
type CreateExtractDatasetBill = {
|
|
type: BillTypeEnum.extraDatasetSub;
|
|
extraDatasetSize: number;
|
|
month: number;
|
|
};
|
|
export type CreateBillProps =
|
|
| CreateStandPlanBill
|
|
| CreateExtractPointsBill
|
|
| CreateExtractDatasetBill;
|
|
|
|
export type CreateBillResponse = {
|
|
billId: string;
|
|
codeUrl: string;
|
|
readPrice: number;
|
|
};
|