实现统一退货相关API功能

- 新增合单退货、退货、退货查询等API接口
- 使用gtime替代time包处理时间格式
- 新增客户端签名生成和HTTP请求发送逻辑
- 定义统一退货相关请求和响应数据结构
- 实现拉卡拉SDK统一退货服务实例化方法
This commit is contained in:
maguodong
2025-10-11 18:12:52 +08:00
parent 7974b4d570
commit 290d3e6ba7
17 changed files with 538 additions and 4 deletions
+12
View File
@@ -46,3 +46,15 @@ const (
// LKL_RECONF_SUBMIT 拉卡拉商户进件复议提交
LKL_RECONF_SUBMIT = "/v2/mms/openApi/reconsiderSubmit"
)
// unifiedReturn 统一退货API地址
const (
// LKL_UNIFIED_RETURN_MERGE_REFUND_URL 拉卡拉合单退货
LKL_UNIFIED_RETURN_MERGE_REFUND_URL = "/v3/rfd/refund_front/merge_refund"
// LKL_UNIFIED_RETURN_REFUND_URL 拉卡拉退货
LKL_UNIFIED_RETURN_REFUND_URL = "/v3/rfd/refund_front/refund"
// LKL_UNIFIED_RETURN_REFUND_QUERY_URL 拉卡拉退货查询
LKL_UNIFIED_RETURN_REFUND_QUERY_URL = "/v3/rfd/refund_front/refund_query"
// LKL_UNIFIED_RETURN_REFUND_FEE_URL 拉卡拉退货手续费查询
LKL_UNIFIED_RETURN_REFUND_FEE_URL = "/v3/rfd/refund_front/refund_fee"
)