|
|
@ -109,42 +109,34 @@ func (a *afterService) Reject(ctx context.Context, args ArgsAfterServiceReject)
|
|
|
|
return
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
type ReplyAfterServiceInfo struct {
|
|
|
|
type ReplyAfterServiceDetail struct {
|
|
|
|
Id uint `json:"id"`
|
|
|
|
Id uint `json:"id"`
|
|
|
|
OrderStatus uint `json:"orderStatus"`
|
|
|
|
AfsSn string `json:"afsSn"`
|
|
|
|
PayTime int64 `json:"payTime"`
|
|
|
|
Status uint `json:"status"`
|
|
|
|
FinishAt int64 `json:"finishAt"`
|
|
|
|
Result string `json:"result"`
|
|
|
|
OrderSubSn string `json:"orderSubSn"`
|
|
|
|
CreatedAt int64 `json:"createdAt"`
|
|
|
|
Source string `json:"source"`
|
|
|
|
UpdatedAt int64 `json:"updatedAt"`
|
|
|
|
Customer string `json:"customer"`
|
|
|
|
SkuName string `json:"skuName"`
|
|
|
|
OrderFee decimal.Decimal `json:"orderFee"`
|
|
|
|
ImgUrl string `json:"imgUrl"`
|
|
|
|
FreightFee decimal.Decimal `json:"freightFee"`
|
|
|
|
|
|
|
|
Sku AfterServiceSku `json:"sku"`
|
|
|
|
|
|
|
|
Packages []RetailOrderPackage `json:"packages"`
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
type RetailOrderPackage struct {
|
|
|
|
|
|
|
|
LogisticsName string `json:"logisticsName"`
|
|
|
|
|
|
|
|
WaybillCode string `json:"waybillCode"`
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
type AfterServiceSku struct {
|
|
|
|
|
|
|
|
Name string `json:"name"`
|
|
|
|
|
|
|
|
SkuId uint `json:"skuId"`
|
|
|
|
SkuId uint `json:"skuId"`
|
|
|
|
SupplySkuId uint `json:"supplySkuId"`
|
|
|
|
SupplySkuId uint `json:"supplySkuId"`
|
|
|
|
SupplyPrice decimal.Decimal `json:"supplyPrice"`
|
|
|
|
|
|
|
|
Rate decimal.Decimal `json:"rate"`
|
|
|
|
|
|
|
|
AdjustType uint `json:"adjustType"`
|
|
|
|
|
|
|
|
Price decimal.Decimal `json:"price"`
|
|
|
|
Price decimal.Decimal `json:"price"`
|
|
|
|
|
|
|
|
SupplyPrice decimal.Decimal `json:"supplyPrice"`
|
|
|
|
Quantity uint `json:"quantity"`
|
|
|
|
Quantity uint `json:"quantity"`
|
|
|
|
|
|
|
|
HopeTypeName string `json:"hopeTypeName"`
|
|
|
|
|
|
|
|
TypeReasonName string `json:"typeReasonName"`
|
|
|
|
|
|
|
|
Imgs []string `json:"imgs"`
|
|
|
|
|
|
|
|
LogisticsCompany string `json:"logisticsCompany"`
|
|
|
|
|
|
|
|
WaybillCode string `json:"waybillCode"`
|
|
|
|
|
|
|
|
SendAt int64 `json:"sendAt"`
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Info @Title 零售售后详情
|
|
|
|
// Detail @Title 售后详情
|
|
|
|
func (a *afterService) Info(ctx context.Context, afsSn string) (reply ReplyAfterServiceInfo, err error) {
|
|
|
|
func (a *afterService) Detail(ctx context.Context, afsSn string) (reply ReplyAfterServiceDetail, err error) {
|
|
|
|
xClient, err := client.GetClient(a)
|
|
|
|
xClient, err := client.GetClient(a)
|
|
|
|
if err != nil {
|
|
|
|
if err != nil {
|
|
|
|
return ReplyAfterServiceInfo{}, err
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
err = xClient.Call(ctx, "Info", afsSn, &reply)
|
|
|
|
err = xClient.Call(ctx, "Detail", afsSn, &reply)
|
|
|
|
return
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|