40 lines
1.3 KiB
Go
40 lines
1.3 KiB
Go
package kog
|
||
|
||
// WechatToBBRequest 微信回调蓝色兄弟接口数据同步Api
|
||
type WechatToBBRequest struct {
|
||
// 活动ID
|
||
ActivityId string `json:"activityId,omitempty"`
|
||
// 活动名称
|
||
ActivityName string `json:"activityName,omitempty"`
|
||
// 优惠券ID
|
||
VoucherId string `json:"voucherId,omitempty"`
|
||
// 领取用户ID
|
||
UserId string `json:"userId,omitempty"`
|
||
// 核销时间(Unix时间戳,毫秒)
|
||
UseTime string `json:"useTime,omitempty"`
|
||
// 核销金额(分)
|
||
UseAmount int64 `json:"useAmount,omitempty"`
|
||
// 券消息类型,例如券核销(V_USE,V_REFUND)
|
||
BizType string `json:"bizType,omitempty"`
|
||
// 退款时间(Unix时间戳,毫秒)
|
||
RefundTime string `json:"refundTime,omitempty"`
|
||
// 退款金额(分)
|
||
RefundAmount string `json:"refundAmount,omitempty"`
|
||
// 券状态,可用(ENABLED)/不可用(DISABLED)
|
||
VoucherStatus string `json:"voucherStatus,omitempty"`
|
||
// 幂等ID
|
||
OrderId string `json:"orderId,omitempty"`
|
||
// 支付宝交易号
|
||
TradeNo string `json:"tradeNo,omitempty"`
|
||
// 券领取时间(Unix时间戳,毫秒)
|
||
GmtVoucherCreate string `json:"gmtVoucherCreate,omitempty"`
|
||
}
|
||
|
||
func (this *WechatToBBRequest) GetNotice() *Notice {
|
||
return &Notice{
|
||
OutBizBo: this.OrderId,
|
||
Type: NoticeTypeWechatToBB,
|
||
BizContent: this,
|
||
}
|
||
}
|