|
|
@ -4,6 +4,7 @@ import (
|
|
|
|
"context"
|
|
|
|
"context"
|
|
|
|
"git.oa00.com/supply-chain/service/client"
|
|
|
|
"git.oa00.com/supply-chain/service/client"
|
|
|
|
"git.oa00.com/supply-chain/service/lib/bean"
|
|
|
|
"git.oa00.com/supply-chain/service/lib/bean"
|
|
|
|
|
|
|
|
"github.com/shopspring/decimal"
|
|
|
|
"github.com/smallnest/rpcx/share"
|
|
|
|
"github.com/smallnest/rpcx/share"
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
@ -161,6 +162,7 @@ type AfterServiceItem struct {
|
|
|
|
Quantity uint `json:"quantity"`
|
|
|
|
Quantity uint `json:"quantity"`
|
|
|
|
TypeReasonName string `json:"typeReasonName"`
|
|
|
|
TypeReasonName string `json:"typeReasonName"`
|
|
|
|
OrderSubId uint `json:"orderSubId"`
|
|
|
|
OrderSubId uint `json:"orderSubId"`
|
|
|
|
|
|
|
|
Result string `json:"result"`
|
|
|
|
Status uint `json:"status"`
|
|
|
|
Status uint `json:"status"`
|
|
|
|
CreatedAt int64 `json:"createdAt"`
|
|
|
|
CreatedAt int64 `json:"createdAt"`
|
|
|
|
UpdatedAt int64 `json:"updatedAt"`
|
|
|
|
UpdatedAt int64 `json:"updatedAt"`
|
|
|
@ -175,3 +177,32 @@ func (a *afterService) Lists(ctx context.Context, channelId string, args ArgsAft
|
|
|
|
err = xClient.Call(context.WithValue(ctx, share.ReqMetaDataKey, map[string]string{"channelId": channelId}), "Lists", args, &reply)
|
|
|
|
err = xClient.Call(context.WithValue(ctx, share.ReqMetaDataKey, map[string]string{"channelId": channelId}), "Lists", args, &reply)
|
|
|
|
return
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
type ReplyAfterServiceDetail struct {
|
|
|
|
|
|
|
|
Id uint `json:"id"`
|
|
|
|
|
|
|
|
AfsSn string `json:"afsSn"`
|
|
|
|
|
|
|
|
ReceiverName string `json:"receiverName"`
|
|
|
|
|
|
|
|
ReceiverMobile string `json:"receiverMobile"`
|
|
|
|
|
|
|
|
Status uint `json:"status"`
|
|
|
|
|
|
|
|
Result string `json:"result"`
|
|
|
|
|
|
|
|
CreatedAt int64 `json:"createdAt"`
|
|
|
|
|
|
|
|
UpdatedAt int64 `json:"updatedAt"`
|
|
|
|
|
|
|
|
SkuName string `json:"skuName"`
|
|
|
|
|
|
|
|
ImgUrl string `json:"imgUrl"`
|
|
|
|
|
|
|
|
SkuId uint `json:"skuId"`
|
|
|
|
|
|
|
|
Price decimal.Decimal `json:"price"`
|
|
|
|
|
|
|
|
Quantity uint `json:"quantity"`
|
|
|
|
|
|
|
|
HopeTypeName string `json:"hopeTypeName"`
|
|
|
|
|
|
|
|
TypeReasonName string `json:"typeReasonName"`
|
|
|
|
|
|
|
|
Imgs []string `json:"imgs"`
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Detail @Title 售后详情
|
|
|
|
|
|
|
|
func (a *afterService) Detail(ctx context.Context, channelId string, afsSn string) (reply ReplyAfterServiceDetail, err error) {
|
|
|
|
|
|
|
|
xClient, err := client.GetClient(a)
|
|
|
|
|
|
|
|
if err != nil {
|
|
|
|
|
|
|
|
return
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
err = xClient.Call(context.WithValue(ctx, share.ReqMetaDataKey, map[string]string{"channelId": channelId}), "Detail", afsSn, &reply)
|
|
|
|
|
|
|
|
return
|
|
|
|
|
|
|
|
}
|
|
|
|