添加回调接口

finance
杨赟 2 years ago
parent ddadbdeffe
commit 4876acbe86

@ -0,0 +1,29 @@
package otosaas
import (
"context"
"git.oa00.com/supply-chain/service/client"
)
type callback struct {
}
// OtoSaas @Title 海旅回调
func (c *category) 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 *category) 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
}

@ -1,6 +1,7 @@
package otosaas package otosaas
type OtoSaas struct { type OtoSaas struct {
Callback callback
Category category Category category
Commodity commodity Commodity commodity
} }

Loading…
Cancel
Save