Files
quyun/backend_v1/pkg/fields/orders.go
Rogee 49072ddd79
Some checks failed
build quyun / Build (push) Failing after 1m30s
migrate controllers
2025-12-19 23:33:02 +08:00

23 lines
670 B
Go

package fields
import (
"github.com/go-pay/gopay/wechat/v3"
"go.ipao.vip/gen/types"
)
// swagger:enum OrderStatus
// ENUM( pending, paid, refund_success, refund_closed, refund_processing, refund_abnormal, cancelled, completed)
type OrderStatus int16
type OrderMeta struct {
PayNotify *wechat.V3DecryptPayResult `json:"pay_notify"`
RefundResp *wechat.RefundOrderResponse `json:"refund_resp"`
RefundNotify *wechat.V3DecryptRefundResult `json:"refund_notify"`
CostBalance int64 `json:"cost_balance"` // 余额支付的金额
}
// JsonType
func (o OrderMeta) JsonType() types.JSONType[OrderMeta] {
return types.NewJSONType(o)
}