You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
488 B
26 lines
488 B
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
|
|
}
|