添加物流公司rpc接口

finance
黄伟 2 years ago
parent e67a84365d
commit 1973793f4a

@ -0,0 +1,25 @@
package supplier
import (
"git.oa00.com/supply-chain/service/client"
"golang.org/x/net/context"
)
type logisticsCompany struct {
}
type CompanyItem struct {
Id uint `json:"id"`
Name string `json:"name"`
}
// Select @Title 物流公司筛选
func (l *logisticsCompany) Select(ctx context.Context) (reply []CompanyItem, err error) {
xClient, err := client.GetClient(l)
if err != nil {
return nil, err
}
args := 0
err = xClient.Call(ctx, "Select", args, &reply)
return
}
Loading…
Cancel
Save