From edab14e3c428b634e964ffdc26ef847ef06b6094 Mon Sep 17 00:00:00 2001 From: renzhiyuan <465386466@qq.com> Date: Thu, 23 Jul 2026 18:42:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=96=87=E4=BB=B6:=20xy=5Fsh?= =?UTF-8?q?/internal/entities/request.go?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- xy_sh/internal/entities/request.go | 44 ++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 xy_sh/internal/entities/request.go diff --git a/xy_sh/internal/entities/request.go b/xy_sh/internal/entities/request.go new file mode 100644 index 0000000..a4d4a61 --- /dev/null +++ b/xy_sh/internal/entities/request.go @@ -0,0 +1,44 @@ +package entities + +// OrderCreateBizReq 卡券/直充权益下单请求业务参数 +type OrderCreateBizReq struct { + ActCode string `json:"actCode"` + GoodsCode string `json:"goodsCode"` + ActOrderNum string `json:"actOrderNum"` + Account string `json:"account,omitempty"` + CallbackURL string `json:"callbackUrl,omitempty"` +} + +// OrderQueryBizReq 卡券/直充/微信立减金订单查询请求业务参数 +type OrderQueryBizReq struct { + ActCode string `json:"actCode"` + OrderNo string `json:"orderNo"` +} + +// WechatRechargeBizReq 微信立减金订单充值请求业务参数 +type WechatRechargeBizReq struct { + ActCode string `json:"actCode"` + OrderNo string `json:"orderNo"` + GoodsCode string `json:"goodsCode"` + ActOrderNum string `json:"actOrderNum"` + AppId string `json:"appId"` + OpenId string `json:"openId"` + CallbackURL string `json:"callbackUrl,omitempty"` +} + +// CallbackNotifyBizReq 回调通知请求业务参数 +type CallbackNotifyBizReq struct { + OrderNo string `json:"orderNo"` + ActOrderNum string `json:"actOrderNum"` + Status int `json:"status"` + Account string `json:"account,omitempty"` + CardInfo *CardInfo `json:"cardInfo,omitempty"` + CouponId string `json:"couponId,omitempty"` +} + +// CardInfo 卡券信息 +type CardInfo struct { + CouponNo string `json:"couponNo"` + CouponCode string `json:"couponCode"` + ExpireTime string `json:"expireTime"` +} \ No newline at end of file