|
|
@ -5,7 +5,7 @@ import (
|
|
|
|
"git.oa00.com/supply-chain/service/client"
|
|
|
|
"git.oa00.com/supply-chain/service/client"
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
type Source struct {
|
|
|
|
type sourceRpc struct {
|
|
|
|
Id uint `gorm:"primaryKey"`
|
|
|
|
Id uint `gorm:"primaryKey"`
|
|
|
|
Name string // 供货商名称
|
|
|
|
Name string // 供货商名称
|
|
|
|
Base string // rpc服务基础名称
|
|
|
|
Base string // rpc服务基础名称
|
|
|
@ -19,7 +19,7 @@ type SourceItem struct {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Select @Title 订单列表
|
|
|
|
// 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)
|
|
|
|
xClient, err := client.GetClient(s)
|
|
|
|
if err != nil {
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
return
|
|
|
|