commit
c8b80ae6c3
@ -0,0 +1,29 @@
|
||||
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
|
||||
}
|
@ -1,6 +1,7 @@
|
||||
package otosaas
|
||||
|
||||
type OtoSaas struct {
|
||||
Callback callback
|
||||
Category category
|
||||
Commodity commodity
|
||||
}
|
||||
|
@ -0,0 +1,31 @@
|
||||
package order
|
||||
|
||||
import (
|
||||
"git.oa00.com/supply-chain/service/client"
|
||||
"github.com/shopspring/decimal"
|
||||
"golang.org/x/net/context"
|
||||
)
|
||||
|
||||
type Order struct {
|
||||
order
|
||||
}
|
||||
|
||||
type order struct {
|
||||
}
|
||||
|
||||
type ArgsOrderFreightFee struct {
|
||||
OrderSn string
|
||||
FreightFee decimal.Decimal
|
||||
FreightFile string
|
||||
}
|
||||
|
||||
// FreightFee @Title 运费处理
|
||||
func (o *order) FreightFee(ctx context.Context, args ArgsOrderFreightFee) (err error) {
|
||||
xClient, err := client.GetClient(o)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
reply := 0
|
||||
err = xClient.Call(ctx, "FreightFee", args, &reply)
|
||||
return
|
||||
}
|
Loading…
Reference in new issue