|
|
|
@ -58,3 +58,54 @@ func (a *afterService) RetailAfsHistory(ctx context.Context, args ArgsRetailHist
|
|
|
|
|
err = xClient.Call(ctx, "RetailAfsHistory", args, &reply)
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type ArgsAfterServiceDeliver struct {
|
|
|
|
|
SourceAfsSn string `json:"sourceAfsSn"`
|
|
|
|
|
SourceSkuId string `json:"sourceSkuId"`
|
|
|
|
|
SourceOrderSN string `json:"sourceOrderSN"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Deliver @Title 需要发货
|
|
|
|
|
func (a *afterService) Deliver(ctx context.Context, args ArgsAfterServiceDeliver) (err error) {
|
|
|
|
|
xClient, err := client.GetClient(a)
|
|
|
|
|
if err != nil {
|
|
|
|
|
return err
|
|
|
|
|
}
|
|
|
|
|
reply := 0
|
|
|
|
|
err = xClient.Call(ctx, "Deliver", args, &reply)
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type ArgsAfterServiceReceipt struct {
|
|
|
|
|
SourceAfsSn string `json:"sourceAfsSn"`
|
|
|
|
|
SourceSkuId string `json:"sourceSkuId"`
|
|
|
|
|
SourceOrderSN string `json:"sourceOrderSN"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Receipt @Title 收货处理
|
|
|
|
|
func (a *afterService) Receipt(ctx context.Context, args ArgsAfterServiceReceipt) (err error) {
|
|
|
|
|
xClient, err := client.GetClient(a)
|
|
|
|
|
if err != nil {
|
|
|
|
|
return err
|
|
|
|
|
}
|
|
|
|
|
reply := 0
|
|
|
|
|
err = xClient.Call(ctx, "Receipt", args, &reply)
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type ArgsAfterServiceReject struct {
|
|
|
|
|
SourceAfsSn string `json:"sourceAfsSn"`
|
|
|
|
|
SourceSkuId string `json:"sourceSkuId"`
|
|
|
|
|
SourceOrderSN string `json:"sourceOrderSN"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Reject @Title 驳回
|
|
|
|
|
func (a *afterService) Reject(ctx context.Context, args ArgsAfterServiceReject) (err error) {
|
|
|
|
|
xClient, err := client.GetClient(a)
|
|
|
|
|
if err != nil {
|
|
|
|
|
return err
|
|
|
|
|
}
|
|
|
|
|
reply := 0
|
|
|
|
|
err = xClient.Call(ctx, "Reject", args, &reply)
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|