提交 91d815c7 authored 作者: zhanglibo's avatar zhanglibo

天猫匿名账号

上级 f54764ad
master featrue/ikucun featrue/suning featrue/wandian featrue/yonghui jst wpc/order v0.8.60 v0.8.59 v0.8.58 v0.8.57 v0.8.56 v0.8.55 v0.8.54 v0.8.53 v0.8.52 v0.8.51 v0.8.50 v0.8.49 v0.8.48 v0.8.47 v0.8.46 v0.8.45 v0.8.44 v0.8.43 v0.8.42 v0.8.41 v0.8.40 v0.8.39 v0.8.38 v0.8.37 v0.8.36 v0.8.35 v0.8.34 v0.8.33 v0.8.32 v0.8.31 v0.8.30 v0.8.29 v0.8.28 v0.8.27 v0.8.26 v0.8.25 v0.8.24 v0.8.23 v0.8.22 v0.8.21 v0.8.20 v0.8.19 v0.8.18 v0.8.15 v0.8.14 v0.8.13 v0.8.12 v0.8.11 v0.8.10 v0.8.9 v0.8.8 v0.8.7 v0.8.6 v0.8.5 v0.8.4 v0.8.3 v0.8.2 v0.8.1 v0.8.0 v0.7.41 v0.7.40 v0.7.39 v0.7.38 v0.7.37 v0.7.36 v0.7.35 v0.7.34 v0.7.33 v0.7.32 v0.7.31 v0.7.30 v0.7.29 v0.7.28 v0.7.27 v0.7.26 v0.7.24 v0.7.23 v0.7.22 v0.7.21 v0.7.20 v0.7.19 v0.7.18 v0.7.17 v0.7.16 v0.7.15 v0.7.14 v0.7.13 v0.7.12 v0.7.10 v0.7.8 v0.7.7 v0.7.5 v0.7.4 v0.7.3 v0.7.0 v0.6.93 v0.6.92 v0.6.91 v0.6.88 v0.6.87 v0.6.86 v0.6.84 v0.6.83 v0.6.82 v0.6.81 v0.6.80 v0.6.74 v0.6.73 v0.6.72 v0.6.71 v0.6.70 v0.6.69 v0.6.68 v0.6.67 v0.6.66 v0.6.65 v0.6.64 v0.6.63 v0.6.62 v0.6.61 v0.6.60 v0.6.59 v0.6.58 v0.6.56 v0.6.54 v0.6.52 v0.6.51 v0.6.50 v0.6.48 v0.6.46 v0.6.45 v0.6.44 v0.6.43 v0.6.42 v0.6.41 v0.6.40 v0.6.39 v0.6.38 v0.6.37 v0.6.36 v0.6.35 v0.6.34 v0.6.33 v0.6.32 v0.6.31 v0.6.30 v0.6.29 v0.6.28 v0.6.27 v0.6.26 v0.6.25 v0.6.24 v0.6.23 v0.6.22 v0.6.21 v0.6.20 v0.6.19 v0.6.18 v0.6.17 v0.6.16 v0.6.15 v0.6.14 v0.6.13 v0.6.12 v0.6.11 v0.6.10 v0.6.9 v0.6.8 v0.6.7 v0.6.6 v0.6.5 v0.6.4 v0.6.3 v0.6.2 v0.6.1 v0.6.0 v0.5.30 v0.5.26 v0.5.25 v0.5.24 v0.5.23 v0.5.21 v0.5.17 v0.5.16 v0.5.15 v0.5.14 v0.5.12 v0.5.11 v0.5.10 v0.5.9 v0.5.8 v0.5.7 v0.5.6 v0.5.5 v0.5.4 v0.5.2 v0.5.1 v0.5.0 v0.4.6 v0.4.5 v0.4.4 v0.4.3 v0.4.2
无相关合并请求
......@@ -3,7 +3,6 @@ package tm
import (
"context"
"encoding/json"
"github.com/gogf/gf/util/gconv"
)
type accountTm struct {
......@@ -12,11 +11,11 @@ type accountTm struct {
var Account = accountTm{}
//Regist 注册单个淘宝账号接口(同步)
func (s *accountTm) Regist(ctx context.Context, AppID interface{}) (res *CommonRes, err error) {
func (s *accountTm) Regist(ctx context.Context, UserId string) (res *CommonRes, err error) {
method := "RegistAnonymousTbAccount"
result, err := post(ctx, method, map[string]string{
"BizUid": server.BizUid,
"ThirdPartyUserId": gconv.String(AppID),
"ThirdPartyUserId": UserId,
})
_ = json.Unmarshal([]byte(result), &res)
return
......
......@@ -3,7 +3,6 @@ package tm
import (
"context"
"encoding/json"
"github.com/gogf/gf/util/gconv"
)
type deliverTm struct {
......@@ -33,7 +32,7 @@ type DeliverInfoRes struct {
}
//Info 物流查询接口
func (s *deliverTm) Info(ctx context.Context, AppID interface{}, LmOrderId string) (res *DeliverInfoRes, err error) {
func (s *deliverTm) Info(ctx context.Context, UserId, LmOrderId string) (res *DeliverInfoRes, err error) {
method := "queryLogistics"
......@@ -41,7 +40,7 @@ func (s *deliverTm) Info(ctx context.Context, AppID interface{}, LmOrderId strin
"BizUid": server.BizUid,
"LmOrderId": LmOrderId,
"AccountType": "ANONY",
"ThirdPartyUserId": gconv.String(AppID),
"ThirdPartyUserId": UserId,
}
result, err := post(ctx, method, request)
......
......@@ -73,7 +73,7 @@ func (s *orderTm) Before(ctx context.Context, addr OrderAddress, itemLists []Ord
}
type OrderCreateReq struct {
AppID interface{}
UserId string
ChannelOrder string
Address OrderAddress
ItemLists []OrderGoodsItem
......@@ -108,7 +108,7 @@ func (s *orderTm) Create(ctx context.Context, req OrderCreateReq) (res *OrderCre
request["BizUid"] = server.BizUid
request["OutTradeId"] = req.ChannelOrder
request["AccountType"] = typeAnony
request["ThirdPartyUserId"] = gconv.String(req.AppID)
request["ThirdPartyUserId"] = req.UserId
result, err := post(ctx, method, request)
_ = json.Unmarshal([]byte(result), &res)
......@@ -136,7 +136,7 @@ func (s *orderTm) Pay(ctx context.Context, req OrderPayReq) (res *OrderCreateRes
}
type OrderListReq struct {
AppID interface{}
UserId string
ChannelOrder string
LmOrderId string
LogisticsStatus string
......@@ -231,7 +231,7 @@ func (s *orderTm) List(ctx context.Context, req OrderListReq) (res *OrderListRes
"PageNumber": "1",
"PageSize": "20",
"AccountType": typeAnony,
"ThirdPartyUserId": gconv.String(req.AppID),
"ThirdPartyUserId": req.UserId,
}
result, err := post(ctx, method, request)
......@@ -240,7 +240,7 @@ func (s *orderTm) List(ctx context.Context, req OrderListReq) (res *OrderListRes
}
type OrderCancelReq struct {
AppID interface{}
UserId string
LmOrderId string
}
......@@ -252,7 +252,7 @@ func (s *orderTm) Cancel(ctx context.Context, req OrderCancelReq) (res *OrderLis
"BizUid": server.BizUid,
"LmOrderId": req.LmOrderId,
"AccountType": typeAnony,
"ThirdPartyUserId": gconv.String(req.AppID),
"ThirdPartyUserId": req.UserId,
})
_ = json.Unmarshal([]byte(result), &res)
return
......
......@@ -12,7 +12,7 @@ type refundTm struct {
var Refund = refundTm{}
type RefundSubmitReq struct {
AppID interface{}
UserId string
SubLmOrderId string //子订单号
DisputeId string //售后ID
CpCode string //物流编码
......@@ -29,7 +29,7 @@ func (s *refundTm) Submit(ctx context.Context, req RefundSubmitReq) (res *Common
"DisputeId": req.DisputeId,
"CpCode": req.CpCode,
"LogisticsNo": req.LogisticsNo,
"ThirdPartyUserId": gconv.String(req.AppID),
"ThirdPartyUserId": req.UserId,
"AccountType": typeAnony,
}
......@@ -39,14 +39,14 @@ func (s *refundTm) Submit(ctx context.Context, req RefundSubmitReq) (res *Common
}
//Cancel 取消退款申请接口
func (s *refundTm) Cancel(ctx context.Context, AppID uint, subLmOrderId, disputeId string) (res *CommonRes, err error) {
func (s *refundTm) Cancel(ctx context.Context, UserId, subLmOrderId, disputeId string) (res *CommonRes, err error) {
method := "cancelRefund"
request := map[string]string{
"BizUid": server.BizUid,
"SubLmOrderId": subLmOrderId,
"DisputeId": disputeId,
"ThirdPartyUserId": gconv.String(AppID),
"ThirdPartyUserId": UserId,
"AccountType": typeAnony,
}
......@@ -56,7 +56,7 @@ func (s *refundTm) Cancel(ctx context.Context, AppID uint, subLmOrderId, dispute
}
type RefundBeforeReq struct {
AppID interface{}
UserId string
ChannelOrder string
SubLmOrderId string
BizClaimType string
......@@ -93,7 +93,7 @@ func (s *refundTm) Before(ctx context.Context, req RefundBeforeReq) (res *Refund
"SubLmOrderId": req.SubLmOrderId,
"GoodsStatus": req.GoodsStatus,
"BizClaimType": req.BizClaimType,
"ThirdPartyUserId": gconv.String(req.AppID),
"ThirdPartyUserId": req.UserId,
"AccountType": typeAnony,
}
......@@ -103,7 +103,7 @@ func (s *refundTm) Before(ctx context.Context, req RefundBeforeReq) (res *Refund
}
type RefundApplyReq struct {
AppID interface{}
UserId string
SubLmOrderId string //子订单号
BizClaimType string //退款类型
ApplyRefundFee string //申请退款金额
......@@ -144,7 +144,7 @@ func (s *refundTm) Apply(ctx context.Context, req *RefundApplyReq) (res *RefundA
request["GoodsStatus"] = req.GoodsStatus
request["BizUid"] = server.BizUid
request["AccountType"] = typeAnony
request["ThirdPartyUserId"] = gconv.String(req.AppID)
request["ThirdPartyUserId"] = req.UserId
result, err := post(ctx, method, request)
_ = json.Unmarshal([]byte(result), &res)
......@@ -186,13 +186,13 @@ type RefundInfoRes struct {
}
//Info 详情
func (s *refundTm) Info(ctx context.Context, AppID uint, subLmOrderId string) (res *RefundInfoRes, err error) {
func (s *refundTm) Info(ctx context.Context, UserId, subLmOrderId string) (res *RefundInfoRes, err error) {
method := "queryRefundApplicationDetail"
request := map[string]string{
"BizUid": server.BizUid,
"SubLmOrderId": subLmOrderId,
"ThirdPartyUserId": gconv.String(AppID),
"ThirdPartyUserId": UserId,
"AccountType": typeAnony,
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论