handler

package
v0.0.0-...-8e1814b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 9, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

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 修改用户

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL