feat: add wechat pay
This commit is contained in:
19
backend/database/fields/orders.go
Normal file
19
backend/database/fields/orders.go
Normal file
@@ -0,0 +1,19 @@
|
||||
package fields
|
||||
|
||||
// swagger:enum OrderType
|
||||
// ENUM( Charge, Consume, Refund)
|
||||
type OrderType int16
|
||||
|
||||
// swagger:enum OrderStatus
|
||||
// ENUM( Pending, Paid, Refunding, Refunded, Cancelled)
|
||||
type OrderStatus int16
|
||||
|
||||
type OrderMeta struct {
|
||||
ObjectID int64 `json:"object_id"`
|
||||
Price int64 `json:"price"`
|
||||
Discount int16 `json:"discount"`
|
||||
Coupons []struct {
|
||||
ID int64 `json:"id"`
|
||||
Description string `json:"description"`
|
||||
} `json:"coupons"`
|
||||
}
|
||||
Reference in New Issue
Block a user