24 lines
476 B
Go
24 lines
476 B
Go
package dto
|
|
|
|
type OrderCreateForm struct {
|
|
ContentID string `json:"content_id"`
|
|
Sku string `json:"sku"`
|
|
Quantity int `json:"quantity"`
|
|
}
|
|
|
|
type OrderCreateResponse struct {
|
|
OrderID string `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
|
|
}
|