Documentation ¶
Index ¶
- type Users
- func (e *Users) Add(ctx context.Context, req *proto.AddRequest, rep *proto.AddResponse) error
- func (e *Users) BatchDelete(ctx context.Context, req *proto.DeleteRequest, rep *proto.DeleteResponse) error
- func (e *Users) Get(ctx context.Context, req *proto.GetRequest, rep *proto.GetResponse) error
- func (e *Users) GetList(ctx context.Context, req *proto.GetListRequest, rep *proto.GetListResponse) error
- func (e *Users) Update(ctx context.Context, req *proto.UpdateRequest, rep *proto.UpdateResponse) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Users ¶
type Users struct{}
Users Struct
func (*Users) Add ¶
func (e *Users) Add(ctx context.Context, req *proto.AddRequest, rep *proto.AddResponse) error
Add 添加一个用户
func (*Users) BatchDelete ¶
func (e *Users) BatchDelete(ctx context.Context, req *proto.DeleteRequest, rep *proto.DeleteResponse) error
BatchDelete 批量删除用户(假删除)
func (*Users) Get ¶
func (e *Users) Get(ctx context.Context, req *proto.GetRequest, rep *proto.GetResponse) error
Get 获取单个用户
func (*Users) GetList ¶
func (e *Users) GetList(ctx context.Context, req *proto.GetListRequest, rep *proto.GetListResponse) error
GetList 获取用户列表,默认 id 倒排序
func (*Users) Update ¶
func (e *Users) Update(ctx context.Context, req *proto.UpdateRequest, rep *proto.UpdateResponse) error
Update 修改用户
Click to show internal directories.
Click to hide internal directories.