mirror of
https://github.com/labring/FastGPT.git
synced 2026-05-16 01:09:01 +08:00
5131ab21cf
* fix: ts * extra point * doc
45 lines
1.0 KiB
TypeScript
45 lines
1.0 KiB
TypeScript
import type { StandardSubLevelEnum, SubModeEnum } from '../sub/constants';
|
|
import type { BillTypeEnum } from './constants';
|
|
import { DrawBillQRItem } from './constants';
|
|
|
|
export type CreateOrderResponse = {
|
|
qrCode?: string;
|
|
iframeCode?: string;
|
|
markdown?: string;
|
|
};
|
|
|
|
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;
|
|
readPrice: number;
|
|
payment: BillPayWayEnum;
|
|
} & CreateOrderResponse;
|
|
|
|
export type UpdatePaymentProps = {
|
|
billId: string;
|
|
payWay: BillPayWayEnum;
|
|
};
|
|
|
|
export type CheckPayResultResponse = {
|
|
status: BillStatusEnum;
|
|
description?: string;
|
|
};
|