添加退货地址rpc

finance
黄伟 2 years ago
parent cccc84c73e
commit ddedf6096d

@ -0,0 +1,30 @@
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
}

@ -14,6 +14,7 @@ type Supplier struct {
WarnLiaison warnLiaison
WalletApply supplierWalletApply
LogisticsCompany logisticsCompany
ReturnAddress returnAddress
}
type supplier struct {

Loading…
Cancel
Save