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.
service/supply/source.go

31 lines
614 B

package supply
import (
"context"
"git.oa00.com/supply-chain/service/client"
)
type Source struct {
Id uint `gorm:"primaryKey"`
Name string // 供货商名称
Base string // rpc服务基础名称
SkuName string // sku名称
OrderName string // order名称
}
type SourceItem struct {
Id uint `json:"id"`
Name string `json:"name"`
}
// Select @Title 订单列表
func (s *Source) Select(ctx context.Context) (reply []SourceItem, err error) {
xClient, err := client.GetClient(s)
if err != nil {
return
}
args := 0
err = xClient.Call(ctx, "Select", args, &reply)
return
}