feat: implement new structure
This commit is contained in:
23
backend/app/http/v1/dto/order.go
Normal file
23
backend/app/http/v1/dto/order.go
Normal file
@@ -0,0 +1,23 @@
|
||||
package dto
|
||||
|
||||
type OrderCreateForm struct {
|
||||
ContentID string `json:"contentId"`
|
||||
Sku string `json:"sku"`
|
||||
Quantity int `json:"quantity"`
|
||||
}
|
||||
|
||||
type OrderCreateResponse struct {
|
||||
OrderID string `json:"orderId"`
|
||||
}
|
||||
|
||||
type OrderPayForm struct {
|
||||
Method string `json:"method"` // wechat, alipay, balance
|
||||
}
|
||||
|
||||
type OrderPayResponse struct {
|
||||
PayParams string `json:"payParams"`
|
||||
}
|
||||
|
||||
type OrderStatusResponse struct {
|
||||
Status string `json:"status"` // unpaid, paid, completed
|
||||
}
|
||||
Reference in New Issue
Block a user