user_handler

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler added in v1.2.1

type Handler interface {

	// Create 创建用户
	// @Tags User
	// @Router /user/create [post]
	Create() core.HandlerFunc

	// UpdateNickNameByID 编辑用户 - 通过主键ID更新用户昵称
	// @Tags User
	// @Router /user/update [put]
	UpdateNickNameByID() core.HandlerFunc

	// Delete 删除用户
	// @Tags User
	// @Router /user/delete/{id} [patch]
	Delete() core.HandlerFunc

	// Detail 用户详情
	// @Tags User
	// @Router /user/info/{username} [get]
	Detail() core.HandlerFunc
	// contains filtered or unexported methods
}

func New added in v1.2.1

func New(logger *zap.Logger, db db.Repo, cache cache.Repo) Handler

Jump to

Keyboard shortcuts

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