finance
黄伟 2 years ago
parent 84bf68949f
commit d1f8877bd9

@ -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

@ -13,5 +13,5 @@ type Supply struct {
Channel channel.Channel
Setting setting.Setting
Order order
Source Source
Source sourceRpc
}

Loading…
Cancel
Save