You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
package otosaas
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
"git.oa00.com/supply-chain/service/client"
|
|
|
|
)
|
|
|
|
|
|
|
|
type callback struct {
|
|
|
|
}
|
|
|
|
|
|
|
|
// OtoSaas @Title 海旅回调
|
|
|
|
func (c *callback) OtoSaas(ctx context.Context, args string) (reply string, err error) {
|
|
|
|
xClient, err := client.GetClient(c)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
err = xClient.Call(ctx, "OtoSaas", args, &reply)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// Kuaidi100 @Title 快递100回调
|
|
|
|
func (c *callback) Kuaidi100(ctx context.Context, args string) (reply string, err error) {
|
|
|
|
xClient, err := client.GetClient(c)
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
err = xClient.Call(ctx, "Kuaidi100", args, &reply)
|
|
|
|
return
|
|
|
|
}
|