Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录
切换导航
L
library
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
stbz
library
Commits
3349fbb6
提交
3349fbb6
authored
9月 08, 2022
作者:
zhanglibo
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
京东
上级
d9349b85
显示空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
34 行增加
和
11 行删除
+34
-11
jingdong_refund.go
upstream/jingdong/jingdong_refund.go
+34
-11
没有找到文件。
upstream/jingdong/jingdong_refund.go
浏览文件 @
3349fbb6
...
@@ -75,7 +75,14 @@ type RefundListRes struct {
...
@@ -75,7 +75,14 @@ type RefundListRes struct {
PageIndex
int
`json:"pageIndex"`
//当前页数
PageIndex
int
`json:"pageIndex"`
//当前页数
ServiceInfoList
[]
struct
{
ServiceInfoList
[]
struct
{
AfsServiceId
int
`json:"afsServiceId"`
//服务单号
AfsServiceId
int
`json:"afsServiceId"`
//服务单号
CustomerExpect
int
`json:"customerExpect"`
CustomerExpectName
string
`json:"customerExpectName"`
AfsApplyTime
string
`json:"afsApplyTime"`
OrderId
int64
`json:"orderId"`
WareId
int
`json:"wareId"`
//商品编号
WareId
int
`json:"wareId"`
//商品编号
WareName
string
`json:"wareName"`
AfsServiceStep
int
`json:"afsServiceStep"`
AfsServiceStepName
string
`json:"afsServiceStepName"`
Cancel
int
`json:"cancel"`
//是否可取消: 0代表否,1代表是
Cancel
int
`json:"cancel"`
//是否可取消: 0代表否,1代表是
}
`json:"serviceInfoList"`
}
`json:"serviceInfoList"`
}
`json:"result"`
}
`json:"result"`
...
@@ -88,10 +95,18 @@ type RefundDetailRes struct {
...
@@ -88,10 +95,18 @@ type RefundDetailRes struct {
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"`
//京东订单号
IsHasInvoice
int
`json:"isHasInvoice"`
IsNeedDetectionReport
int
`json:"isNeedDetectionReport"`
IsHasPackage
int
`json:"isHasPackage"`
QuestionPic
string
`json:"questionPic"`
QuestionDesc
string
`json:"questionDesc"`
ApproveNotes
string
`json:"approveNotes"`
//审核意见
ApproveNotes
string
`json:"approveNotes"`
//审核意见
ApprovedResult
int
`json:"approvedResult"`
//审核结果:直赔积分 (11),直赔余额 (12),直赔优惠卷 (13),直赔京豆 (14),直赔商品 (21),上门换新 (22),自营取件 (31),客户送货(32),客户发货 (33),闪电退款 (34),虚拟退款 (35),大家电检测 (80),大家电安装 (81),大家电移机 (82),大家电维修 (83),大家电其它(84);
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);
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)
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
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论