user

package
v0.0.0-...-71c8b1b Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserController

type UserController struct {
	// contains filtered or unexported fields
}

UserController 是 user 模块在 Controller 层的实现,用来处理用户模块的请求.

func New

func New(ds store.IStore) *UserController

New 创建一个 user controller.

func (*UserController) ChangePassword

func (ctrl *UserController) ChangePassword(c *gin.Context)

ChangePassword 用来修改指定用户的密码.

func (*UserController) Create

func (ctrl *UserController) Create(c *gin.Context)

Create 创建一个新的用户.

func (*UserController) Login

func (ctrl *UserController) Login(c *gin.Context)

登录 miniblog 并返回一个 JWT Token.

Jump to

Keyboard shortcuts

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