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.
31 lines
632 B
31 lines
632 B
package supplier
|
|
|
|
import (
|
|
"git.oa00.com/supply-chain/service/client"
|
|
"golang.org/x/net/context"
|
|
)
|
|
|
|
type returnAddress struct {
|
|
}
|
|
|
|
type ReplyReturnAddressAll struct {
|
|
SupplierId uint `json:"supplierId"`
|
|
Item []ReturnAddressItem `json:"item"`
|
|
}
|
|
|
|
type ReturnAddressItem struct {
|
|
Id uint `json:"id"`
|
|
Address string `json:"name"`
|
|
}
|
|
|
|
// All @Title 全部退货地址
|
|
func (r *returnAddress) All(ctx context.Context) (reply []ReplyReturnAddressAll, err error) {
|
|
xClient, err := client.GetClient(r)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
args := 0
|
|
err = xClient.Call(ctx, "All", args, &reply)
|
|
return
|
|
}
|