forked from all_user/stat_center
代码提交
This commit is contained in:
@@ -10,7 +10,9 @@ import (
|
||||
type RefundOrderListReq struct {
|
||||
AppId *int32 `json:"appId" form:"appId"` // appId
|
||||
UserId *uint64 `json:"userId" form:"userId"` // 用户ID
|
||||
CID *string `json:"cid" form:"cid"` // 渠道id
|
||||
CID *string `json:"cid" form:"cid"` // 订单id
|
||||
TransNo *string `json:"transNo" form:"transNo"` // 请求订单号
|
||||
IP *string `json:"ip" form:"ip"` // 下单用户IP
|
||||
ChannelName *string `json:"channelName" form:"channelName"` // 支付渠道名字
|
||||
DistrictCode *string `json:"districtCode" form:"districtCode"` // 渠道码
|
||||
PageNum int64 `json:"pageNum" form:"pageNum" binding:"required,gte=1"`
|
||||
@@ -22,14 +24,24 @@ type RefundOrderListResp struct {
|
||||
List refundOrderMod.RefundOrderList `json:"list"`
|
||||
}
|
||||
|
||||
// AddRefundOrderReq 按 cid 回填新增。服务端据此查询 log_recharge 的成功订单并逐条落库
|
||||
type AddRefundOrderReq struct {
|
||||
CID string `json:"cid" binding:"required"` // 渠道id
|
||||
// RefundOrderItem 一笔待回填的订单。
|
||||
// cid 用于查 log_recharge 回填数据;transNo 仅作留痕,便于按原始请求订单号追溯。
|
||||
type RefundOrderItem struct {
|
||||
CID string `json:"cid" binding:"required"` // 订单id
|
||||
TransNo string `json:"transNo"` // 请求订单号,可空
|
||||
IP string `json:"ip"` // 下单用户IP,可空
|
||||
}
|
||||
|
||||
// BatchAddRefundOrderReq 批量按 cid 回填新增
|
||||
// AddRefundOrderReq 单条新增
|
||||
type AddRefundOrderReq struct {
|
||||
CID string `json:"cid" binding:"required"`
|
||||
TransNo string `json:"transNo"`
|
||||
IP string `json:"ip"`
|
||||
}
|
||||
|
||||
// BatchAddRefundOrderReq 批量新增
|
||||
type BatchAddRefundOrderReq struct {
|
||||
CIDs []string `json:"cids" binding:"required,min=1,max=200"` // 渠道id列表
|
||||
Items []RefundOrderItem `json:"items" binding:"required,min=1,max=200"`
|
||||
}
|
||||
|
||||
// AddRefundOrderResp 回填结果
|
||||
@@ -42,6 +54,7 @@ type AddRefundOrderResp struct {
|
||||
|
||||
type RefundCidStat struct {
|
||||
CID string `json:"cid"`
|
||||
TransNo string `json:"transNo"`
|
||||
Matched int64 `json:"matched"`
|
||||
Inserted int64 `json:"inserted"`
|
||||
Skipped int64 `json:"skipped"`
|
||||
|
||||
Reference in New Issue
Block a user