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: 18 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Users

type Users struct {
	Client        srvusers.ProtoUsersService
	ClientHistory srvhistoryuserlogin.ProtoHistoryUserLoginService
}

Users struct

func (*Users) Add

func (e *Users) Add(ctx context.Context, req *api.Request, rsp *api.Response) error

Add 添加一个用户

func (*Users) BatchDelete

func (e *Users) BatchDelete(ctx context.Context, req *api.Request, rsp *api.Response) error

BatchDelete 批量删除用户信息

func (*Users) GetList

func (e *Users) GetList(ctx context.Context, req *api.Request, rsp *api.Response) error

GetList 获取用户列表,默认 id 倒排序

func (*Users) GetUser

func (e *Users) GetUser(ctx context.Context, req *api.Request, rsp *api.Response) error

GetUser 获取单个用户,根据Id或用户名

func (*Users) Update

func (e *Users) Update(ctx context.Context, req *api.Request, rsp *api.Response) error

Update 修改用户信息

func (*Users) UserLogin

func (e *Users) UserLogin(ctx context.Context, req *api.Request, rsp *api.Response) error

UserLogin 用户登录

func (*Users) ValidToken

func (e *Users) ValidToken(ctx context.Context, req *api.Request, rsp *api.Response) error

ValidToken 验证 Token

Jump to

Keyboard shortcuts

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