This commit is contained in:
@@ -2,6 +2,7 @@ package fields
|
||||
|
||||
import (
|
||||
"github.com/go-pay/gopay/wechat/v3"
|
||||
"go.ipao.vip/gen/types"
|
||||
)
|
||||
|
||||
// swagger:enum OrderStatus
|
||||
@@ -14,3 +15,8 @@ type OrderMeta struct {
|
||||
RefundNotify *wechat.V3DecryptRefundResult `json:"refund_notify"`
|
||||
CostBalance int64 `json:"cost_balance"` // 余额支付的金额
|
||||
}
|
||||
|
||||
// JsonType
|
||||
func (o OrderMeta) JsonType() types.JSONType[OrderMeta] {
|
||||
return types.NewJSONType(o)
|
||||
}
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
package fields
|
||||
|
||||
import "go.ipao.vip/gen/types"
|
||||
|
||||
type MediaAsset struct {
|
||||
Type string `json:"type"`
|
||||
Media int64 `json:"media"`
|
||||
@@ -7,6 +9,11 @@ type MediaAsset struct {
|
||||
Mark *string `json:"mark,omitempty"`
|
||||
}
|
||||
|
||||
// JsonType
|
||||
func (t MediaAsset) JsonType() types.JSONType[MediaAsset] {
|
||||
return types.NewJSONType(t)
|
||||
}
|
||||
|
||||
// swagger:enum PostStatus
|
||||
// ENUM( draft, published )
|
||||
type PostStatus int16
|
||||
|
||||
Reference in New Issue
Block a user