ingrate pay func

This commit is contained in:
AceDataCloud committed 2022-10-07 17:49:41 +08:00
1 parent 67f8e78bad
commit 7526ffa2b9
6 files changed
+58 -15

No files matched your search

+7 -1
View File
@@ -1,12 +1,18 @@
export const ORDER_STATE_PENDING = 'Pending';
export const ORDER_STATE_PAID = 'Paid';
export const ORDER_STATE_EXPIRED = 'Expired';
export const ORDER_STATE_FAILED = 'Failed';
export interface IOrder {
id?: string;
description?: string;
state?: 'Pending' | 'Expired' | 'Paied' | 'Failed';
state?: typeof ORDER_STATE_PENDING | typeof ORDER_STATE_PAID | typeof ORDER_STATE_EXPIRED | typeof ORDER_STATE_FAILED;
price?: number;
creatorId?: number;
createdAt?: string;
updatedAt?: string;
courses?: number[];
wechatpayUrl?: string;
}
export interface IOrderListResponse {