提交 9959aaa3 authored 作者: zhanglibo's avatar zhanglibo

阿里返回值

上级 950022c6
...@@ -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"`
......
...@@ -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"`
......
...@@ -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
} }
......
...@@ -15,17 +15,17 @@ type refundAli struct { ...@@ -15,17 +15,17 @@ 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"`
} }
type RefundApplyItem struct { type RefundApplyItem struct {
...@@ -35,25 +35,25 @@ type RefundApplyItem struct { ...@@ -35,25 +35,25 @@ type RefundApplyItem struct {
type RefundApplyRes struct { type RefundApplyRes struct {
Result struct { Result struct {
Result struct { Success bool `json:"success"`
Code string `json:"code"`
Message string `json:"message"`
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 {
AlipayPaymentID string `json:"alipayPaymentId"` AlipayPaymentId 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"`
ApplyReasonID int `json:"applyReasonId"` ApplyReasonId int `json:"applyReasonId"`
ApplySubReasonID int `json:"applySubReasonId"` ApplySubReasonId int `json:"applySubReasonId"`
BuyerMemberID string `json:"buyerMemberId"` BuyerMemberId string `json:"buyerMemberId"`
BuyerSendGoods bool `json:"buyerSendGoods"` BuyerSendGoods bool `json:"buyerSendGoods"`
BuyerUserID int `json:"buyerUserId"` BuyerUserId 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"`
B2BBuyerMID string `json:"b2b_buyer_mId"` B2BBuyerMId 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"`
GmtCreate string `json:"gmtCreate"` GmtCompleted string `json:"gmtCompleted"`
GmtModified string `json:"gmtModified"` GmtCreate string `json:"gmtCreate"`
GmtTimeOut string `json:"gmtTimeOut"` GmtModified string `json:"gmtModified"`
GoodsReceived bool `json:"goodsReceived"` GmtTimeOut string `json:"gmtTimeOut"`
GoodsStatus int `json:"goodsStatus"` GoodsReceived bool `json:"goodsReceived"`
ID int64 `json:"id"` GoodsStatus int `json:"goodsStatus"`
NewRefundReturn bool `json:"newRefundReturn"` Id int64 `json:"id"`
OnlyRefund bool `json:"onlyRefund"` NewRefundReturn bool `json:"newRefundReturn"`
OrderEntryIDList []int64 `json:"orderEntryIdList"` OnlyRefund bool `json:"onlyRefund"`
OrderID int64 `json:"orderId"` OrderEntryIdList []int64 `json:"orderEntryIdList"`
ProductName string `json:"productName"` OrderId int64 `json:"orderId"`
RefundCarriage int `json:"refundCarriage"` ProductName string `json:"productName"`
RefundGoods bool `json:"refundGoods"` RefundCarriage int `json:"refundCarriage"`
RefundID string `json:"refundId"` RefundGoods bool `json:"refundGoods"`
RefundPayment int `json:"refundPayment"` RefundId string `json:"refundId"`
RejectReasonID int `json:"rejectReasonId"` RefundPayment int `json:"refundPayment"`
RejectTimes int `json:"rejectTimes"` RejectReasonId int `json:"rejectReasonId"`
SellerDelayDisburse bool `json:"sellerDelayDisburse"` RejectReason string `json:"rejectReason"` // 拒绝原因
SellerMemberID string `json:"sellerMemberId"` RejectTimes int `json:"rejectTimes"`
SellerUserID int64 `json:"sellerUserId"` SellerDelayDisburse bool `json:"sellerDelayDisburse"`
Status string `json:"status"` SellerMemberId string `json:"sellerMemberId"`
SupportNewSteppay bool `json:"supportNewSteppay"` SellerMobile string `json:"sellerMobile"`
TimeOutFreeze bool `json:"timeOutFreeze"` SellerRealName string `json:"sellerRealName"`
TradeTypeStr string `json:"tradeTypeStr"` SellerReceiveAddress string `json:"sellerReceiveAddress"`
RefundOperationList []interface{} `json:"refundOperationList"` SellerUserId int64 `json:"sellerUserId"`
BuyerLoginID string `json:"buyerLoginId"` Status string `json:"status"`
SellerLoginID string `json:"sellerLoginId"` SupportNewSteppay bool `json:"supportNewSteppay"`
TimeOutFreeze bool `json:"timeOutFreeze"`
TradeTypeStr string `json:"tradeTypeStr"`
RefundOperationList []struct {
AfterOperateStatus string `json:"afterOperateStatus,omitempty"`
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 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论