diff --git a/supply/source.go b/supply/source.go index 0f2ea0f..00abed6 100644 --- a/supply/source.go +++ b/supply/source.go @@ -5,7 +5,7 @@ import ( "git.oa00.com/supply-chain/service/client" ) -type Source struct { +type sourceRpc struct { Id uint `gorm:"primaryKey"` Name string // 供货商名称 Base string // rpc服务基础名称 @@ -19,7 +19,7 @@ type SourceItem struct { } // Select @Title 订单列表 -func (s *Source) Select(ctx context.Context) (reply []SourceItem, err error) { +func (s *sourceRpc) Select(ctx context.Context) (reply []SourceItem, err error) { xClient, err := client.GetClient(s) if err != nil { return diff --git a/supply/supply.go b/supply/supply.go index 7e24cfb..94da827 100644 --- a/supply/supply.go +++ b/supply/supply.go @@ -13,5 +13,5 @@ type Supply struct { Channel channel.Channel Setting setting.Setting Order order - Source Source + Source sourceRpc }