From d1f8877bd9959437e9202d2499131ddce3db20dc Mon Sep 17 00:00:00 2001 From: sian Date: Thu, 29 Sep 2022 09:35:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- supply/source.go | 4 ++-- supply/supply.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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 }