feat: add wechat pay

This commit is contained in:
Rogee
2025-01-14 14:42:08 +08:00
parent 52c17b63bb
commit 9cd7659d14
32 changed files with 1431 additions and 110 deletions

View 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"`
}