Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录
切换导航
L
library
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
stbz
library
Commits
9959aaa3
提交
9959aaa3
authored
6月 21, 2022
作者:
zhanglibo
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
阿里返回值
上级
950022c6
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
97 行增加
和
67 行删除
+97
-67
ali_address.go
upstream/ali/ali_address.go
+2
-0
ali_goods.go
upstream/ali/ali_goods.go
+4
-4
ali_order.go
upstream/ali/ali_order.go
+5
-5
ali_refund.go
upstream/ali/ali_refund.go
+86
-58
没有找到文件。
upstream/ali/ali_address.go
浏览文件 @
9959aaa3
...
@@ -22,6 +22,7 @@ type AddressParseRes struct {
...
@@ -22,6 +22,7 @@ type AddressParseRes struct {
}
}
type
AddressGetRes
struct
{
type
AddressGetRes
struct
{
CommonRes
Result
struct
{
Result
struct
{
Code
string
`json:"code"`
Code
string
`json:"code"`
Name
string
`json:"name"`
Name
string
`json:"name"`
...
@@ -31,6 +32,7 @@ type AddressGetRes struct {
...
@@ -31,6 +32,7 @@ type AddressGetRes struct {
}
`json:"result"`
}
`json:"result"`
}
}
type
AddressGetChildRes
struct
{
type
AddressGetChildRes
struct
{
CommonRes
Result
[]
struct
{
Result
[]
struct
{
Code
string
`json:"code"`
Code
string
`json:"code"`
Name
string
`json:"name"`
Name
string
`json:"name"`
...
...
upstream/ali/ali_goods.go
浏览文件 @
9959aaa3
...
@@ -27,7 +27,7 @@ type GoodsListReq struct {
...
@@ -27,7 +27,7 @@ type GoodsListReq struct {
type
GoodsListRes
struct
{
type
GoodsListRes
struct
{
Result
struct
{
Result
struct
{
*
CommonRes
CommonRes
TotalCount
int
`json:"totalCount"`
//总数
TotalCount
int
`json:"totalCount"`
//总数
Result
[]
struct
{
Result
[]
struct
{
Title
string
`json:"title"`
//商品标题
Title
string
`json:"title"`
//商品标题
...
@@ -50,7 +50,7 @@ type GoodsInfoReq struct {
...
@@ -50,7 +50,7 @@ type GoodsInfoReq struct {
}
}
type
GoodsInfoRes
struct
{
type
GoodsInfoRes
struct
{
*
CommonRes
CommonRes
BizGroupInfos
[]
struct
{
BizGroupInfos
[]
struct
{
Support
bool
`json:"support"`
Support
bool
`json:"support"`
Description
string
`json:"description"`
Description
string
`json:"description"`
...
@@ -168,7 +168,7 @@ type GoodsGroupRes struct {
...
@@ -168,7 +168,7 @@ type GoodsGroupRes struct {
ID
int
`json:"id"`
ID
int
`json:"id"`
Title
string
`json:"title"`
Title
string
`json:"title"`
}
`json:"result"`
}
`json:"result"`
*
CommonRes
CommonRes
}
`json:"result"`
}
`json:"result"`
}
}
...
@@ -178,7 +178,7 @@ type GoodsCategoryReq struct {
...
@@ -178,7 +178,7 @@ type GoodsCategoryReq struct {
}
}
type
GoodsCategoryRes
struct
{
type
GoodsCategoryRes
struct
{
*
CommonRes
CommonRes
CategoryInfo
[]
struct
{
CategoryInfo
[]
struct
{
CategoryID
int
`json:"categoryID"`
CategoryID
int
`json:"categoryID"`
Name
string
`json:"name"`
Name
string
`json:"name"`
...
...
upstream/ali/ali_order.go
浏览文件 @
9959aaa3
...
@@ -49,7 +49,7 @@ type Offer struct {
...
@@ -49,7 +49,7 @@ type Offer struct {
}
}
type
CreateOrderRes
struct
{
type
CreateOrderRes
struct
{
*
CommonRes
CommonRes
Result
struct
{
Result
struct
{
TotalSuccessAmount
int64
`json:"totalSuccessAmount"`
//下单成功的订单总金额,单位:分
TotalSuccessAmount
int64
`json:"totalSuccessAmount"`
//下单成功的订单总金额,单位:分
OrderId
string
`json:"orderId"`
//下单成功后的订单id
OrderId
string
`json:"orderId"`
//下单成功后的订单id
...
@@ -58,7 +58,7 @@ type CreateOrderRes struct {
...
@@ -58,7 +58,7 @@ type CreateOrderRes struct {
}
}
type
OrderDetailRes
struct
{
type
OrderDetailRes
struct
{
*
CommonRes
CommonRes
Result
struct
{
Result
struct
{
BaseInfo
struct
{
BaseInfo
struct
{
PayTime
string
`json:"payTime"`
PayTime
string
`json:"payTime"`
...
@@ -211,7 +211,7 @@ type ProductItems struct {
...
@@ -211,7 +211,7 @@ type ProductItems struct {
}
}
type
BeforeCreateRes
struct
{
type
BeforeCreateRes
struct
{
*
CommonRes
CommonRes
OrderPreviewResuslt
[]
BeforeCreateItem
`json:"orderPreviewResuslt"`
OrderPreviewResuslt
[]
BeforeCreateItem
`json:"orderPreviewResuslt"`
}
}
...
@@ -233,7 +233,7 @@ type BeforeCreateItem struct {
...
@@ -233,7 +233,7 @@ type BeforeCreateItem struct {
}
}
type
DeliverRes
struct
{
type
DeliverRes
struct
{
*
CommonRes
CommonRes
LogisticsTrace
[]
struct
{
LogisticsTrace
[]
struct
{
LogisticsBillNo
string
`json:"logisticsBillNo"`
//物流单号,运单号
LogisticsBillNo
string
`json:"logisticsBillNo"`
//物流单号,运单号
LogisticsId
string
`json:"logisticsId"`
//物流信息ID
LogisticsId
string
`json:"logisticsId"`
//物流信息ID
...
@@ -247,7 +247,7 @@ type DeliverRes struct {
...
@@ -247,7 +247,7 @@ type DeliverRes struct {
}
}
type
GetLogisticCompanyRes
struct
{
type
GetLogisticCompanyRes
struct
{
*
CommonRes
CommonRes
Result
[]
CompanyInfo
`json:"result"`
//result
Result
[]
CompanyInfo
`json:"result"`
//result
}
}
...
...
upstream/ali/ali_refund.go
浏览文件 @
9959aaa3
...
@@ -15,16 +15,16 @@ type refundAli struct {
...
@@ -15,16 +15,16 @@ type refundAli struct {
var
Refund
=
refundAli
{}
var
Refund
=
refundAli
{}
type
RefundApplyReq
struct
{
type
RefundApplyReq
struct
{
OrderId
int64
`json:"orderId"`
//主订单
OrderId
string
`json:"orderId"`
//主订单
OrderEntryIds
[]
int64
`json:"orderEntryIds"`
//子订单
OrderEntryIds
string
`json:"orderEntryIds"`
//子订单
DisputeRequest
string
`json:"disputeRequest"`
//退款/退款退货。只有已收到货,才可以选择退款退货[退款:"refund"; 退款退货:"returnRefund"]
DisputeRequest
string
`json:"disputeRequest"`
//退款/退款退货。只有已收到货,才可以选择退款退货[退款:"refund"; 退款退货:"returnRefund"]
ApplyPayment
int64
`json:"applyPayment"`
//退款金额(单位:分)
ApplyPayment
string
`json:"applyPayment"`
//退款金额(单位:分)
ApplyCarriage
int64
`json:"applyCarriage"`
//退运费金额(单位:分)
ApplyCarriage
string
`json:"applyCarriage"`
//退运费金额(单位:分)
ApplyReasonId
int64
`json:"applyReasonId"`
//退款原因id
ApplyReasonId
string
`json:"applyReasonId"`
//退款原因id
Description
int64
`json:"description"`
//退款申请理由,2-150字
Description
string
`json:"description"`
//退款申请理由,2-150字
GoodsStatus
int64
`json:"goodsStatus"`
//货物状态[售中等待卖家发货:"refundWaitSellerSend"; 售中等待买家收货:"refundWaitBuyerReceive"; 售中已收货(未确认完成交易):"refundBuyerReceived" 售后未收货:"aftersaleBuyerNotReceived"; 售后已收到货:"aftersaleBuyerReceived"]
GoodsStatus
string
`json:"goodsStatus"`
//货物状态[售中等待卖家发货:"refundWaitSellerSend"; 售中等待买家收货:"refundWaitBuyerReceive"; 售中已收货(未确认完成交易):"refundBuyerReceived" 售后未收货:"aftersaleBuyerNotReceived"; 售后已收到货:"aftersaleBuyerReceived"]
Vouchers
[]
string
`json:"vouchers"`
//凭证图片URLs。1-5张,必须使用API uploadRefundVoucher返回的“图片域名/相对路径”
Vouchers
[]
string
`json:"vouchers"`
//凭证图片URLs。1-5张,必须使用API uploadRefundVoucher返回的“图片域名/相对路径”
OrderEntryCountList
[]
*
RefundApplyItem
`json:"orderEntryCountList"`
//子订单退款数量。仅在售中买家已收货(退款退货)时,可指定退货数量;默认,全部退货。
OrderEntryCountList
string
`json:"orderEntryCountList"`
//子订单退款数量。仅在售中买家已收货(退款退货)时,可指定退货数量;默认,全部退货。
AccessToken
string
`json:"access_token"`
AccessToken
string
`json:"access_token"`
}
}
...
@@ -35,25 +35,25 @@ type RefundApplyItem struct {
...
@@ -35,25 +35,25 @@ type RefundApplyItem struct {
type
RefundApplyRes
struct
{
type
RefundApplyRes
struct
{
Result
struct
{
Result
struct
{
Success
bool
`json:"success"`
Code
string
`json:"code"`
Message
string
`json:"message"`
Result
struct
{
Result
struct
{
RefundId
string
`json:"refundId"`
// 创建成功,退款id
RefundId
string
`json:"refundId"`
// 创建成功,退款id
}
`json:"result"`
}
`json:"result"`
Success
bool
`json:"success"`
//是否成功
Code
string
`json:"code"`
//错误信息
Message
string
`json:"message"`
//错误码
}
`json:"result"`
}
`json:"result"`
}
}
type
RefundReasonReq
struct
{
type
RefundReasonReq
struct
{
OrderId
string
`json:"orderId"`
//主订单id
OrderId
string
`json:"orderId"`
//主订单id
OrderEntryIds
[]
int64
`json:"orderEntryIds"`
//子订单id
OrderEntryIds
string
`json:"orderEntryIds"`
//子订单id
GoodsStatus
string
`json:"goodsStatus"`
//货物状态 售中等待买家发货:”refundWaitSellerSend"; 售中等待买家收货:"refundWaitBuyerReceive"; 售中已收货(未确认完成交易):"refundBuyerReceived" 售后未收货:"aftersaleBuyerNotReceived"; 售后已收到货:"aftersaleBuyerReceived"
GoodsStatus
string
`json:"goodsStatus"`
//货物状态 售中等待买家发货:”refundWaitSellerSend"; 售中等待买家收货:"refundWaitBuyerReceive"; 售中已收货(未确认完成交易):"refundBuyerReceived" 售后未收货:"aftersaleBuyerNotReceived"; 售后已收到货:"aftersaleBuyerReceived"
AccessToken
string
`json:"access_token"`
AccessToken
string
`json:"access_token"`
}
}
type
RefundReasonRes
struct
{
type
RefundReasonRes
struct
{
Result
struct
{
Result
struct
{
*
CommonRes
CommonRes
Result
struct
{
Result
struct
{
Reasons
[]
struct
{
Reasons
[]
struct
{
ID
int
`json:"id"`
//原因id
ID
int
`json:"id"`
//原因id
...
@@ -68,7 +68,7 @@ type RefundReasonRes struct {
...
@@ -68,7 +68,7 @@ type RefundReasonRes struct {
type
RefundUploadRes
struct
{
type
RefundUploadRes
struct
{
Result
struct
{
Result
struct
{
*
CommonRes
CommonRes
Result
struct
{
Result
struct
{
ImageDomain
string
`json:"imageDomain"`
ImageDomain
string
`json:"imageDomain"`
ImageRelativeURL
string
`json:"imageRelativeUrl"`
ImageRelativeURL
string
`json:"imageRelativeUrl"`
...
@@ -83,17 +83,18 @@ type RefundInfoReq struct {
...
@@ -83,17 +83,18 @@ type RefundInfoReq struct {
}
}
type
RefundInfoRes
struct
{
type
RefundInfoRes
struct
{
CommonRes
Result
struct
{
Result
struct
{
OpOrderRefundModelDetail
struct
{
OpOrderRefundModelDetail
struct
{
AlipayPaymentI
D
string
`json:"alipayPaymentId"`
AlipayPaymentI
d
string
`json:"alipayPaymentId"`
ApplyCarriage
int
`json:"applyCarriage"`
ApplyCarriage
int
`json:"applyCarriage"`
ApplyPayment
int
`json:"applyPayment"`
ApplyPayment
int
`json:"applyPayment"`
ApplyReason
string
`json:"applyReason"`
ApplyReason
string
`json:"applyReason"`
ApplyReasonI
D
int
`json:"applyReasonId"`
ApplyReasonI
d
int
`json:"applyReasonId"`
ApplySubReasonI
D
int
`json:"applySubReasonId"`
ApplySubReasonI
d
int
`json:"applySubReasonId"`
BuyerMemberI
D
string
`json:"buyerMemberId"`
BuyerMemberI
d
string
`json:"buyerMemberId"`
BuyerSendGoods
bool
`json:"buyerSendGoods"`
BuyerSendGoods
bool
`json:"buyerSendGoods"`
BuyerUserI
D
int
`json:"buyerUserId"`
BuyerUserI
d
int
`json:"buyerUserId"`
CanRefundPayment
int
`json:"canRefundPayment"`
CanRefundPayment
int
`json:"canRefundPayment"`
CrmModifyRefund
bool
`json:"crmModifyRefund"`
CrmModifyRefund
bool
`json:"crmModifyRefund"`
DisputeRequest
int
`json:"disputeRequest"`
DisputeRequest
int
`json:"disputeRequest"`
...
@@ -105,8 +106,9 @@ type RefundInfoRes struct {
...
@@ -105,8 +106,9 @@ type RefundInfoRes struct {
Tod
string
`json:"tod"`
Tod
string
`json:"tod"`
NewRefund
string
`json:"newRefund"`
NewRefund
string
`json:"newRefund"`
BFsc
string
`json:"b_fsc"`
BFsc
string
`json:"b_fsc"`
AgreeReturnMsg
string
`json:"agree_return_msg"`
OpRole
string
`json:"opRole"`
OpRole
string
`json:"opRole"`
B2BBuyerMI
D
string
`json:"b2b_buyer_mId"`
B2BBuyerMI
d
string
`json:"b2b_buyer_mId"`
ApplyReasonText
string
`json:"apply_reason_text"`
ApplyReasonText
string
`json:"apply_reason_text"`
ApplyInitRefundFee
string
`json:"apply_init_refund_fee"`
ApplyInitRefundFee
string
`json:"apply_init_refund_fee"`
ItemBuyAmount
string
`json:"itemBuyAmount"`
ItemBuyAmount
string
`json:"itemBuyAmount"`
...
@@ -115,6 +117,7 @@ type RefundInfoRes struct {
...
@@ -115,6 +117,7 @@ type RefundInfoRes struct {
InterceptItemListResult
string
`json:"interceptItemListResult"`
InterceptItemListResult
string
`json:"interceptItemListResult"`
InterceptStatus
string
`json:"interceptStatus"`
InterceptStatus
string
`json:"interceptStatus"`
SellerBatch
string
`json:"seller_batch"`
SellerBatch
string
`json:"seller_batch"`
RestartForXiaoer
string
`json:"restartForXiaoer"`
CljZeroSecondRefund
string
`json:"clj_zero_second_refund"`
CljZeroSecondRefund
string
`json:"clj_zero_second_refund"`
Tos
string
`json:"tos"`
Tos
string
`json:"tos"`
BsSync
string
`json:"bs_sync"`
BsSync
string
`json:"bs_sync"`
...
@@ -125,46 +128,71 @@ type RefundInfoRes struct {
...
@@ -125,46 +128,71 @@ type RefundInfoRes struct {
Bgmtc
string
`json:"bgmtc"`
Bgmtc
string
`json:"bgmtc"`
PayMode
string
`json:"payMode"`
PayMode
string
`json:"payMode"`
AppName
string
`json:"appName"`
AppName
string
`json:"appName"`
SellerDoRefundNick
string
`json:"sellerDoRefundNick"`
WorkflowName
string
`json:"workflowName"`
WorkflowName
string
`json:"workflowName"`
Ttid
string
`json:"ttid"`
Ttid
string
`json:"ttid"`
SellerAudit
string
`json:"seller_audit"`
SellerAudit
string
`json:"seller_audit"`
Rp3
string
`json:"rp3"`
Rp3
string
`json:"rp3"`
SellerAgreedRefundFee
string
`json:"seller_agreed_refund_fee"`
B2BBt
string
`json:"b2b_bt"`
B2BBt
string
`json:"b2b_bt"`
B2BExchange
string
`json:"b2b_exchange"`
B2BExchange
string
`json:"b2b_exchange"`
ItemPrice
string
`json:"itemPrice"`
ItemPrice
string
`json:"itemPrice"`
IsVirtual
string
`json:"isVirtual"`
IsVirtual
string
`json:"isVirtual"`
EXmrf
string
`json:"EXmrf"`
EXmrf
string
`json:"EXmrf"`
B2BSellerMID
string
`json:"b2b_seller_mId"`
B2BSellerMId
string
`json:"b2b_seller_mId"`
BCfRsc
string
`json:"b_cf_rsc"`
}
`json:"extInfo"`
}
`json:"extInfo"`
FrozenFund
int
`json:"frozenFund"`
FrozenFund
int
`json:"frozenFund"`
GmtApply
string
`json:"gmtApply"`
GmtApply
string
`json:"gmtApply"`
GmtCompleted
string
`json:"gmtCompleted"`
GmtCreate
string
`json:"gmtCreate"`
GmtCreate
string
`json:"gmtCreate"`
GmtModified
string
`json:"gmtModified"`
GmtModified
string
`json:"gmtModified"`
GmtTimeOut
string
`json:"gmtTimeOut"`
GmtTimeOut
string
`json:"gmtTimeOut"`
GoodsReceived
bool
`json:"goodsReceived"`
GoodsReceived
bool
`json:"goodsReceived"`
GoodsStatus
int
`json:"goodsStatus"`
GoodsStatus
int
`json:"goodsStatus"`
I
D
int64
`json:"id"`
I
d
int64
`json:"id"`
NewRefundReturn
bool
`json:"newRefundReturn"`
NewRefundReturn
bool
`json:"newRefundReturn"`
OnlyRefund
bool
`json:"onlyRefund"`
OnlyRefund
bool
`json:"onlyRefund"`
OrderEntryI
DList
[]
int64
`json:"orderEntryIdList"`
OrderEntryI
dList
[]
int64
`json:"orderEntryIdList"`
OrderI
D
int64
`json:"orderId"`
OrderI
d
int64
`json:"orderId"`
ProductName
string
`json:"productName"`
ProductName
string
`json:"productName"`
RefundCarriage
int
`json:"refundCarriage"`
RefundCarriage
int
`json:"refundCarriage"`
RefundGoods
bool
`json:"refundGoods"`
RefundGoods
bool
`json:"refundGoods"`
RefundI
D
string
`json:"refundId"`
RefundI
d
string
`json:"refundId"`
RefundPayment
int
`json:"refundPayment"`
RefundPayment
int
`json:"refundPayment"`
RejectReasonID
int
`json:"rejectReasonId"`
RejectReasonId
int
`json:"rejectReasonId"`
RejectReason
string
`json:"rejectReason"`
// 拒绝原因
RejectTimes
int
`json:"rejectTimes"`
RejectTimes
int
`json:"rejectTimes"`
SellerDelayDisburse
bool
`json:"sellerDelayDisburse"`
SellerDelayDisburse
bool
`json:"sellerDelayDisburse"`
SellerMemberID
string
`json:"sellerMemberId"`
SellerMemberId
string
`json:"sellerMemberId"`
SellerUserID
int64
`json:"sellerUserId"`
SellerMobile
string
`json:"sellerMobile"`
SellerRealName
string
`json:"sellerRealName"`
SellerReceiveAddress
string
`json:"sellerReceiveAddress"`
SellerUserId
int64
`json:"sellerUserId"`
Status
string
`json:"status"`
Status
string
`json:"status"`
SupportNewSteppay
bool
`json:"supportNewSteppay"`
SupportNewSteppay
bool
`json:"supportNewSteppay"`
TimeOutFreeze
bool
`json:"timeOutFreeze"`
TimeOutFreeze
bool
`json:"timeOutFreeze"`
TradeTypeStr
string
`json:"tradeTypeStr"`
TradeTypeStr
string
`json:"tradeTypeStr"`
RefundOperationList
[]
interface
{}
`json:"refundOperationList"`
RefundOperationList
[]
struct
{
BuyerLoginID
string
`json:"buyerLoginId"`
AfterOperateStatus
string
`json:"afterOperateStatus,omitempty"`
SellerLoginID
string
`json:"sellerLoginId"`
BeforeOperateStatus
string
`json:"beforeOperateStatus,omitempty"`
CloseRefundStepId
int
`json:"closeRefundStepId"`
CrmModifyRefund
bool
`json:"crmModifyRefund"`
Discription
string
`json:"discription"`
GmtCreate
string
`json:"gmtCreate"`
GmtModified
string
`json:"gmtModified"`
Id
int64
`json:"id"`
MessageStatus
int
`json:"messageStatus"`
MsgType
int
`json:"msgType"`
OperateRemark
string
`json:"operateRemark"`
OperateTypeInt
int
`json:"operateTypeInt"`
OperatorLoginId
string
`json:"operatorLoginId"`
OperatorRoleId
int
`json:"operatorRoleId"`
OperatorUserId
int64
`json:"operatorUserId"`
RefundId
string
`json:"refundId"`
}
`json:"refundOperationList"`
BuyerLoginId
string
`json:"buyerLoginId"`
SellerLoginId
string
`json:"sellerLoginId"`
}
`json:"opOrderRefundModelDetail"`
}
`json:"opOrderRefundModelDetail"`
}
`json:"result"`
}
`json:"result"`
}
}
...
@@ -180,7 +208,7 @@ type RefundSubmitReq struct {
...
@@ -180,7 +208,7 @@ type RefundSubmitReq struct {
type
RefundSubmitRes
struct
{
type
RefundSubmitRes
struct
{
Result
struct
{
Result
struct
{
*
CommonRes
CommonRes
}
`json:"result"`
}
`json:"result"`
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论