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

阿里返回值

上级 950022c6
......@@ -22,6 +22,7 @@ type AddressParseRes struct {
}
type AddressGetRes struct {
CommonRes
Result struct {
Code string `json:"code"`
Name string `json:"name"`
......@@ -31,6 +32,7 @@ type AddressGetRes struct {
} `json:"result"`
}
type AddressGetChildRes struct {
CommonRes
Result []struct {
Code string `json:"code"`
Name string `json:"name"`
......
......@@ -27,7 +27,7 @@ type GoodsListReq struct {
type GoodsListRes struct {
Result struct {
*CommonRes
CommonRes
TotalCount int `json:"totalCount"` //总数
Result []struct {
Title string `json:"title"` //商品标题
......@@ -50,7 +50,7 @@ type GoodsInfoReq struct {
}
type GoodsInfoRes struct {
*CommonRes
CommonRes
BizGroupInfos []struct {
Support bool `json:"support"`
Description string `json:"description"`
......@@ -168,7 +168,7 @@ type GoodsGroupRes struct {
ID int `json:"id"`
Title string `json:"title"`
} `json:"result"`
*CommonRes
CommonRes
} `json:"result"`
}
......@@ -178,7 +178,7 @@ type GoodsCategoryReq struct {
}
type GoodsCategoryRes struct {
*CommonRes
CommonRes
CategoryInfo []struct {
CategoryID int `json:"categoryID"`
Name string `json:"name"`
......
......@@ -49,7 +49,7 @@ type Offer struct {
}
type CreateOrderRes struct {
*CommonRes
CommonRes
Result struct {
TotalSuccessAmount int64 `json:"totalSuccessAmount"` //下单成功的订单总金额,单位:分
OrderId string `json:"orderId"` //下单成功后的订单id
......@@ -58,7 +58,7 @@ type CreateOrderRes struct {
}
type OrderDetailRes struct {
*CommonRes
CommonRes
Result struct {
BaseInfo struct {
PayTime string `json:"payTime"`
......@@ -211,7 +211,7 @@ type ProductItems struct {
}
type BeforeCreateRes struct {
*CommonRes
CommonRes
OrderPreviewResuslt []BeforeCreateItem `json:"orderPreviewResuslt"`
}
......@@ -233,7 +233,7 @@ type BeforeCreateItem struct {
}
type DeliverRes struct {
*CommonRes
CommonRes
LogisticsTrace []struct {
LogisticsBillNo string `json:"logisticsBillNo"` //物流单号,运单号
LogisticsId string `json:"logisticsId"` //物流信息ID
......@@ -247,7 +247,7 @@ type DeliverRes struct {
}
type GetLogisticCompanyRes struct {
*CommonRes
CommonRes
Result []CompanyInfo `json:"result"` //result
}
......
......@@ -15,16 +15,16 @@ type refundAli struct {
var Refund = refundAli{}
type RefundApplyReq struct {
OrderId int64 `json:"orderId"` //主订单
OrderEntryIds []int64 `json:"orderEntryIds"` //子订单
OrderId string `json:"orderId"` //主订单
OrderEntryIds string `json:"orderEntryIds"` //子订单
DisputeRequest string `json:"disputeRequest"` //退款/退款退货。只有已收到货,才可以选择退款退货[退款:"refund"; 退款退货:"returnRefund"]
ApplyPayment int64 `json:"applyPayment"` //退款金额(单位:分)
ApplyCarriage int64 `json:"applyCarriage"` //退运费金额(单位:分)
ApplyReasonId int64 `json:"applyReasonId"` //退款原因id
Description int64 `json:"description"` //退款申请理由,2-150字
GoodsStatus int64 `json:"goodsStatus"` //货物状态[售中等待卖家发货:"refundWaitSellerSend"; 售中等待买家收货:"refundWaitBuyerReceive"; 售中已收货(未确认完成交易):"refundBuyerReceived" 售后未收货:"aftersaleBuyerNotReceived"; 售后已收到货:"aftersaleBuyerReceived"]
ApplyPayment string `json:"applyPayment"` //退款金额(单位:分)
ApplyCarriage string `json:"applyCarriage"` //退运费金额(单位:分)
ApplyReasonId string `json:"applyReasonId"` //退款原因id
Description string `json:"description"` //退款申请理由,2-150字
GoodsStatus string `json:"goodsStatus"` //货物状态[售中等待卖家发货:"refundWaitSellerSend"; 售中等待买家收货:"refundWaitBuyerReceive"; 售中已收货(未确认完成交易):"refundBuyerReceived" 售后未收货:"aftersaleBuyerNotReceived"; 售后已收到货:"aftersaleBuyerReceived"]
Vouchers []string `json:"vouchers"` //凭证图片URLs。1-5张,必须使用API uploadRefundVoucher返回的“图片域名/相对路径”
OrderEntryCountList []*RefundApplyItem `json:"orderEntryCountList"` //子订单退款数量。仅在售中买家已收货(退款退货)时,可指定退货数量;默认,全部退货。
OrderEntryCountList string `json:"orderEntryCountList"` //子订单退款数量。仅在售中买家已收货(退款退货)时,可指定退货数量;默认,全部退货。
AccessToken string `json:"access_token"`
}
......@@ -35,25 +35,25 @@ type RefundApplyItem struct {
type RefundApplyRes struct {
Result struct {
Success bool `json:"success"`
Code string `json:"code"`
Message string `json:"message"`
Result struct {
RefundId string `json:"refundId"` // 创建成功,退款id
} `json:"result"`
Success bool `json:"success"` //是否成功
Code string `json:"code"` //错误信息
Message string `json:"message"` //错误码
} `json:"result"`
}
type RefundReasonReq struct {
OrderId string `json:"orderId"` //主订单id
OrderEntryIds []int64 `json:"orderEntryIds"` //子订单id
OrderEntryIds string `json:"orderEntryIds"` //子订单id
GoodsStatus string `json:"goodsStatus"` //货物状态 售中等待买家发货:”refundWaitSellerSend"; 售中等待买家收货:"refundWaitBuyerReceive"; 售中已收货(未确认完成交易):"refundBuyerReceived" 售后未收货:"aftersaleBuyerNotReceived"; 售后已收到货:"aftersaleBuyerReceived"
AccessToken string `json:"access_token"`
}
type RefundReasonRes struct {
Result struct {
*CommonRes
CommonRes
Result struct {
Reasons []struct {
ID int `json:"id"` //原因id
......@@ -68,7 +68,7 @@ type RefundReasonRes struct {
type RefundUploadRes struct {
Result struct {
*CommonRes
CommonRes
Result struct {
ImageDomain string `json:"imageDomain"`
ImageRelativeURL string `json:"imageRelativeUrl"`
......@@ -83,17 +83,18 @@ type RefundInfoReq struct {
}
type RefundInfoRes struct {
CommonRes
Result struct {
OpOrderRefundModelDetail struct {
AlipayPaymentID string `json:"alipayPaymentId"`
AlipayPaymentId string `json:"alipayPaymentId"`
ApplyCarriage int `json:"applyCarriage"`
ApplyPayment int `json:"applyPayment"`
ApplyReason string `json:"applyReason"`
ApplyReasonID int `json:"applyReasonId"`
ApplySubReasonID int `json:"applySubReasonId"`
BuyerMemberID string `json:"buyerMemberId"`
ApplyReasonId int `json:"applyReasonId"`
ApplySubReasonId int `json:"applySubReasonId"`
BuyerMemberId string `json:"buyerMemberId"`
BuyerSendGoods bool `json:"buyerSendGoods"`
BuyerUserID int `json:"buyerUserId"`
BuyerUserId int `json:"buyerUserId"`
CanRefundPayment int `json:"canRefundPayment"`
CrmModifyRefund bool `json:"crmModifyRefund"`
DisputeRequest int `json:"disputeRequest"`
......@@ -105,8 +106,9 @@ type RefundInfoRes struct {
Tod string `json:"tod"`
NewRefund string `json:"newRefund"`
BFsc string `json:"b_fsc"`
AgreeReturnMsg string `json:"agree_return_msg"`
OpRole string `json:"opRole"`
B2BBuyerMID string `json:"b2b_buyer_mId"`
B2BBuyerMId string `json:"b2b_buyer_mId"`
ApplyReasonText string `json:"apply_reason_text"`
ApplyInitRefundFee string `json:"apply_init_refund_fee"`
ItemBuyAmount string `json:"itemBuyAmount"`
......@@ -115,6 +117,7 @@ type RefundInfoRes struct {
InterceptItemListResult string `json:"interceptItemListResult"`
InterceptStatus string `json:"interceptStatus"`
SellerBatch string `json:"seller_batch"`
RestartForXiaoer string `json:"restartForXiaoer"`
CljZeroSecondRefund string `json:"clj_zero_second_refund"`
Tos string `json:"tos"`
BsSync string `json:"bs_sync"`
......@@ -125,46 +128,71 @@ type RefundInfoRes struct {
Bgmtc string `json:"bgmtc"`
PayMode string `json:"payMode"`
AppName string `json:"appName"`
SellerDoRefundNick string `json:"sellerDoRefundNick"`
WorkflowName string `json:"workflowName"`
Ttid string `json:"ttid"`
SellerAudit string `json:"seller_audit"`
Rp3 string `json:"rp3"`
SellerAgreedRefundFee string `json:"seller_agreed_refund_fee"`
B2BBt string `json:"b2b_bt"`
B2BExchange string `json:"b2b_exchange"`
ItemPrice string `json:"itemPrice"`
IsVirtual string `json:"isVirtual"`
EXmrf string `json:"EXmrf"`
B2BSellerMID string `json:"b2b_seller_mId"`
B2BSellerMId string `json:"b2b_seller_mId"`
BCfRsc string `json:"b_cf_rsc"`
} `json:"extInfo"`
FrozenFund int `json:"frozenFund"`
GmtApply string `json:"gmtApply"`
GmtCompleted string `json:"gmtCompleted"`
GmtCreate string `json:"gmtCreate"`
GmtModified string `json:"gmtModified"`
GmtTimeOut string `json:"gmtTimeOut"`
GoodsReceived bool `json:"goodsReceived"`
GoodsStatus int `json:"goodsStatus"`
ID int64 `json:"id"`
Id int64 `json:"id"`
NewRefundReturn bool `json:"newRefundReturn"`
OnlyRefund bool `json:"onlyRefund"`
OrderEntryIDList []int64 `json:"orderEntryIdList"`
OrderID int64 `json:"orderId"`
OrderEntryIdList []int64 `json:"orderEntryIdList"`
OrderId int64 `json:"orderId"`
ProductName string `json:"productName"`
RefundCarriage int `json:"refundCarriage"`
RefundGoods bool `json:"refundGoods"`
RefundID string `json:"refundId"`
RefundId string `json:"refundId"`
RefundPayment int `json:"refundPayment"`
RejectReasonID int `json:"rejectReasonId"`
RejectReasonId int `json:"rejectReasonId"`
RejectReason string `json:"rejectReason"` // 拒绝原因
RejectTimes int `json:"rejectTimes"`
SellerDelayDisburse bool `json:"sellerDelayDisburse"`
SellerMemberID string `json:"sellerMemberId"`
SellerUserID int64 `json:"sellerUserId"`
SellerMemberId string `json:"sellerMemberId"`
SellerMobile string `json:"sellerMobile"`
SellerRealName string `json:"sellerRealName"`
SellerReceiveAddress string `json:"sellerReceiveAddress"`
SellerUserId int64 `json:"sellerUserId"`
Status string `json:"status"`
SupportNewSteppay bool `json:"supportNewSteppay"`
TimeOutFreeze bool `json:"timeOutFreeze"`
TradeTypeStr string `json:"tradeTypeStr"`
RefundOperationList []interface{} `json:"refundOperationList"`
BuyerLoginID string `json:"buyerLoginId"`
SellerLoginID string `json:"sellerLoginId"`
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:"result"`
}
......@@ -180,7 +208,7 @@ type RefundSubmitReq struct {
type RefundSubmitRes struct {
Result struct {
*CommonRes
CommonRes
} `json:"result"`
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论