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