25 lines
529 B
Go
25 lines
529 B
Go
package dto
|
|
|
|
type OrderCreateForm struct {
|
|
ContentID int64 `json:"content_id"`
|
|
Sku string `json:"sku"`
|
|
Quantity int `json:"quantity"`
|
|
UserCouponID int64 `json:"user_coupon_id"`
|
|
}
|
|
|
|
type OrderCreateResponse struct {
|
|
OrderID int64 `json:"order_id"`
|
|
}
|
|
|
|
type OrderPayForm struct {
|
|
Method string `json:"method"` // wechat, alipay, balance
|
|
}
|
|
|
|
type OrderPayResponse struct {
|
|
PayParams string `json:"pay_params"`
|
|
}
|
|
|
|
type OrderStatusResponse struct {
|
|
Status string `json:"status"` // unpaid, paid, completed
|
|
}
|