diff --git a/supply/order.go b/supply/order.go index 490e24d..db128e6 100644 --- a/supply/order.go +++ b/supply/order.go @@ -4,6 +4,7 @@ import ( "context" "git.oa00.com/supply-chain/service/client" "git.oa00.com/supply-chain/service/lib/bean" + _interface "git.oa00.com/supply-chain/service/supply/interface" "github.com/shopspring/decimal" ) @@ -265,3 +266,13 @@ func (o *order) InfoByOrderId(ctx context.Context, orderId uint) (reply InfoByOr err = xClient.Call(ctx, "InfoByOrderId", orderId, &reply) return } + +// SubmitData @Title 订单下单数据 +func (o *order) SubmitData(ctx context.Context, orderId int64) (reply _interface.ReplySubmitData, err error) { + xClient, err := client.GetClient(o) + if err != nil { + return + } + err = xClient.Call(ctx, "SubmitData", orderId, &reply) + return +} diff --git a/supply/source.go b/supply/source.go index 00abed6..84c6b6d 100644 --- a/supply/source.go +++ b/supply/source.go @@ -28,3 +28,22 @@ func (s *sourceRpc) Select(ctx context.Context) (reply []SourceItem, err error) err = xClient.Call(ctx, "Select", args, &reply) return } + +type SourceInfo struct { + Id uint `json:"id"` + Name string `json:"name"` + Base string `json:"base"` + SkuName string `json:"skuName"` + OrderName string `json:"orderName"` + AfterService string `json:"afterService"` +} + +// Info @Title 获取供货商 +func (s *sourceRpc) Info(ctx context.Context, sourceId uint) (reply SourceInfo, err error) { + xClient, err := client.GetClient(s) + if err != nil { + return + } + err = xClient.Call(ctx, "Info", sourceId, &reply) + return +}