提交 3349fbb6 authored 作者: zhanglibo's avatar zhanglibo

京东

上级 d9349b85
...@@ -74,9 +74,16 @@ type RefundListRes struct { ...@@ -74,9 +74,16 @@ type RefundListRes struct {
PageNum int `json:"pageNum"` //总页数 PageNum int `json:"pageNum"` //总页数
PageIndex int `json:"pageIndex"` //当前页数 PageIndex int `json:"pageIndex"` //当前页数
ServiceInfoList []struct { ServiceInfoList []struct {
AfsServiceId int `json:"afsServiceId"` //服务单号 AfsServiceId int `json:"afsServiceId"` //服务单号
WareId int `json:"wareId"` //商品编号 CustomerExpect int `json:"customerExpect"`
Cancel int `json:"cancel"` //是否可取消: 0代表否,1代表是 CustomerExpectName string `json:"customerExpectName"`
AfsApplyTime string `json:"afsApplyTime"`
OrderId int64 `json:"orderId"`
WareId int `json:"wareId"` //商品编号
WareName string `json:"wareName"`
AfsServiceStep int `json:"afsServiceStep"`
AfsServiceStepName string `json:"afsServiceStepName"`
Cancel int `json:"cancel"` //是否可取消: 0代表否,1代表是
} `json:"serviceInfoList"` } `json:"serviceInfoList"`
} `json:"result"` } `json:"result"`
} }
...@@ -84,14 +91,22 @@ type RefundListRes struct { ...@@ -84,14 +91,22 @@ type RefundListRes struct {
type RefundDetailRes struct { type RefundDetailRes struct {
CommonRes CommonRes
Result struct { Result struct {
AfsServiceId int `json:"afsServiceId"` //京东售后服务单号 AfsServiceId int `json:"afsServiceId"` //京东售后服务单号
CustomerExpect int `json:"customerExpect"` //服务类型码:退货(10)、换货(20)、维修(20) CustomerExpect int `json:"customerExpect"` //服务类型码:退货(10)、换货(20)、维修(20)
AfsApplyTime string `json:"afsApplyTime"` //服务单申请时间:格式为yyyy-MM-dd HH:mm:ss AfsApplyTime string `json:"afsApplyTime"` //服务单申请时间:格式为yyyy-MM-dd HH:mm:ss
OrderId int `json:"orderId"` //京东订单号 OrderId int `json:"orderId"` //京东订单号
ApproveNotes string `json:"approveNotes"` //审核意见 IsHasInvoice int `json:"isHasInvoice"`
ApprovedResult int `json:"approvedResult"` //审核结果:直赔积分 (11),直赔余额 (12),直赔优惠卷 (13),直赔京豆 (14),直赔商品 (21),上门换新 (22),自营取件 (31),客户送货(32),客户发货 (33),闪电退款 (34),虚拟退款 (35),大家电检测 (80),大家电安装 (81),大家电移机 (82),大家电维修 (83),大家电其它(84); IsNeedDetectionReport int `json:"isNeedDetectionReport"`
AfsServiceStep int `json:"afsServiceStep"` //服务单环节:申请阶段(10),审核不通过(20),客服审核(21),商家审核(22),京东收货(31),商家收货(32), 京东处理(33),商家处理(34), 用户确认(40),完成(50), 取消(60); IsHasPackage int `json:"isHasPackage"`
ProcessResult int `json:"processResult"` //处理结果:返修换新(23),退货(40), 换良(50),原返(60),病单(71),出检(72),维修(73),强制关单 (80),线下换新(90) QuestionPic string `json:"questionPic"`
QuestionDesc string `json:"questionDesc"`
ApproveNotes string `json:"approveNotes"` //审核意见
ApprovedResult int `json:"approvedResult"` //审核结果:直赔积分 (11),直赔余额 (12),直赔优惠卷 (13),直赔京豆 (14),直赔商品 (21),上门换新 (22),自营取件 (31),客户送货(32),客户发货 (33),闪电退款 (34),虚拟退款 (35),大家电检测 (80),大家电安装 (81),大家电移机 (82),大家电维修 (83),大家电其它(84);
ApprovedResultName string `json:"approvedResultName"`
AfsServiceStep int `json:"afsServiceStep"` //服务单环节:申请阶段(10),审核不通过(20),客服审核(21),商家审核(22),京东收货(31),商家收货(32), 京东处理(33),商家处理(34), 用户确认(40),完成(50), 取消(60);
AfsServiceStepName string `json:"afsServiceStepName"`
ProcessResult int `json:"processResult"` //处理结果:返修换新(23),退货(40), 换良(50),原返(60),病单(71),出检(72),维修(73),强制关单 (80),线下换新(90)
ProcessResultName interface{} `json:"processResultName"`
ServiceAftersalesAddressInfoDTO struct { ServiceAftersalesAddressInfoDTO struct {
Address string `json:"address"` //售后地址 Address string `json:"address"` //售后地址
Tel string `json:"tel"` //售后电话 Tel string `json:"tel"` //售后电话
...@@ -102,6 +117,12 @@ type RefundDetailRes struct { ...@@ -102,6 +117,12 @@ type RefundDetailRes struct {
ServiceFinanceDetailInfoDTO ServiceFinanceDetailInfoDTO
RefundPrice float64 `json:"refundPrice"` //退款金额 RefundPrice float64 `json:"refundPrice"` //退款金额
} `json:"serviceFinanceDetailInfoDTOs"` //退款明细 } `json:"serviceFinanceDetailInfoDTOs"` //退款明细
ServiceDetailInfoDTOs []struct {
WareId int64 `json:"wareId"`
WareName string `json:"wareName"`
WareBrand string `json:"wareBrand"`
AfsDetailType int `json:"afsDetailType"`
} `json:"serviceDetailInfoDTOs"`
} `json:"result"` } `json:"result"`
} }
...@@ -216,6 +237,8 @@ func (*refundJD) Detail(ctx context.Context, req string) (res *RefundDetailRes, ...@@ -216,6 +237,8 @@ func (*refundJD) Detail(ctx context.Context, req string) (res *RefundDetailRes,
method := "afterSale/getServiceDetailInfo" method := "afterSale/getServiceDetailInfo"
var reqJson = gjson.New("") var reqJson = gjson.New("")
_ = reqJson.Set("afsServiceId", req) _ = reqJson.Set("afsServiceId", req)
_ = reqJson.Set("appendInfoSteps", []int{1, 4, 5}) //1、代表增加获取售后地址信息; 2、代表增加获取客户发货信息; 3、代表增加获取退款明细; 4、代表增加获取跟踪信息; 5、代表增加获取允许的操作信息
param := g.Map{ param := g.Map{
"param": reqJson.MustToJsonString(), "param": reqJson.MustToJsonString(),
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论