预警联系人接口

finance
黄伟 2 years ago
parent 0db930ffca
commit 9040b6f76c

@ -11,6 +11,7 @@ type Supplier struct {
Goods goods
Apply supplierApply
supplier
warnLiaison
}
type supplier struct {

@ -0,0 +1,29 @@
package supplier
import (
"context"
"git.oa00.com/supply-chain/service/client"
)
type warnLiaison struct {
}
// Lists @Title 预警联系人列表
func (s *warnLiaison) Lists(ctx context.Context, args int) (reply []string, err error) {
xClient, err := client.GetClient(s)
if err != nil {
return nil, err
}
err = xClient.Call(ctx, "Lists", args, &reply)
return
}
// Update @Title 修改预警联系人
func (s *warnLiaison) Update(ctx context.Context, args []string) error {
xClient, err := client.GetClient(s)
if err != nil {
return err
}
reply := 0
return xClient.Call(ctx, "Update", args, &reply)
}
Loading…
Cancel
Save