38 lines
1.5 KiB
Go
38 lines
1.5 KiB
Go
package bo
|
|
|
|
import "voucher/internal/biz/vo"
|
|
|
|
// ConsumeInformation 定义消费信息结构体
|
|
type ConsumeInformation struct {
|
|
ConsumeTime string `json:"consume_time"`
|
|
ConsumeMchid string `json:"consume_mchid"`
|
|
TransactionID string `json:"transaction_id"`
|
|
ConsumeAmount int64 `json:"consume_amount,omitempty"`
|
|
}
|
|
|
|
// PlainText 定义明文数据结构体
|
|
type PlainText struct {
|
|
StockCreatorMchid string `json:"stock_creator_mchid"`
|
|
StockID string `json:"stock_id"`
|
|
CouponID string `json:"coupon_id"`
|
|
CouponName string `json:"coupon_name"`
|
|
Description string `json:"description"`
|
|
Status vo.WechatVoucherStatus `json:"status"`
|
|
CreateTime string `json:"create_time"`
|
|
CouponType string `json:"coupon_type"`
|
|
NoCash bool `json:"no_cash"`
|
|
Singleitem bool `json:"singleitem"`
|
|
ConsumeInformation ConsumeInformation `json:"consume_information,omitempty"`
|
|
}
|
|
|
|
type WechatVoucherNotifyBo struct {
|
|
ID string `json:"id"`
|
|
CreateTime string `json:"create_time"`
|
|
ResourceType string `json:"resource_type"`
|
|
EventType string `json:"event_type"`
|
|
Summary string `json:"summary"`
|
|
OriginalType string `json:"original_type"`
|
|
AssociatedData string `json:"associated_data"`
|
|
PlainText PlainText `json:"plain_text"`
|
|
}
|