1 Star 0 Fork 0

Sin/rpcinterface

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
staff.go 668 Bytes
一键复制 编辑 原始数据 按行查看 历史
liyang 提交于 2020-05-09 13:14 . 定义es客户端
package staff
import (
"context"
"git.900sui.cn/kc/rpcinterface/client"
"git.900sui.cn/kc/rpcinterface/interface/staff"
)
// @author liyang<654516092@qq.com>
// @date 2020/5/9 10:38
type Staff struct {
client.Baseclient
}
func (s *Staff) Init() *Staff {
s.ServiceName = "rpc_elastic"
s.ServicePath = "Staff/Staff"
return s
}
//新增、更新员工
func (s *Staff) SetStaff(ctx context.Context, staffId *int, reply *bool) error {
return s.Call(ctx, "SetStaff", staffId, reply)
}
//搜索员工
func (s *Staff) SearchStaff(ctx context.Context,args *staff.ArgsSearchWhere,reply *staff.ReplySearch) error{
return s.Call(ctx, "SearchStaff", args, reply)
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/shijun123456/rpcinterface.git
git@gitee.com:shijun123456/rpcinterface.git
shijun123456
rpcinterface
rpcinterface
7a7348490b61

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385