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.
|
|
|
export enum OrderType {
|
|
|
|
OrderTypeArticle = 1,
|
|
|
|
OrderTypeColumn = 2
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface Order {
|
|
|
|
id: number;
|
|
|
|
orderNo: string;
|
|
|
|
targetId: number;
|
|
|
|
type: number;
|
|
|
|
amount: number;
|
|
|
|
duration: number;
|
|
|
|
status: number;
|
|
|
|
coupon:number;
|
|
|
|
description: string;
|
|
|
|
createdAt: string;
|
|
|
|
updatedAt: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface PaymentRequest {
|
|
|
|
orderNo: string;
|
|
|
|
amount: number;
|
|
|
|
paymentType: 'wechat_pay' | '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;
|
|
|
|
}
|
|
|
|
|
|
|
|
|