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.
30 lines
621 B
30 lines
621 B
2 years ago
|
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)
|
||
|
}
|