You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
742 B
TypeScript
43 lines
742 B
TypeScript
![]()
4 weeks ago
|
export enum OrderType {
|
||
|
OrderTypeArticle = 1,
|
||
|
OrderTypeColumn = 2
|
||
|
}
|
||
|
|
||
|
export interface Order {
|
||
|
id: number;
|
||
|
orderNo: string;
|
||
|
targetId: number;
|
||
|
type: number;
|
||
|
amount: number;
|
||
|
duration: number;
|
||
|
status: number;
|
||
|
description: string;
|
||
|
createdAt: string;
|
||
|
updatedAt: string;
|
||
|
}
|
||
|
|
||
|
export interface PaymentRequest {
|
||
|
orderNo: string;
|
||
|
amount: number;
|
||
|
paymentType: 'wechat' | 'alipay';
|
||
|
}
|
||
|
|
||
|
export interface Payment {
|
||
|
id: number;
|
||
|
orderNo: string;
|
||
|
amount: number;
|
||
|
paymentType: string;
|
||
|
status: string;
|
||
|
createdAt: string;
|
||
|
updatedAt: string;
|
||
|
}
|
||
|
|
||
|
export interface WechatPayParams {
|
||
|
appId: string;
|
||
|
timeStamp: string;
|
||
|
nonceStr: string;
|
||
|
package: string;
|
||
|
signType: string;
|
||
|
paySign: string;
|
||
|
}
|