user

package
v0.0.0-...-455e706 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChangePassword

type ChangePassword struct {
	OldPassword string `json:"oldPassword" form:"oldPassword"`

	NewPassword string `json:"newPassword" form:"newPassword"`
}

type UserController

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

func NewUserController

func NewUserController(store store.Factory) *UserController

store 为db的接口 初始化 service接口

func (*UserController) ChangePassword

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

func (*UserController) Create

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

添加用户

func (*UserController) Delete

func (userController *UserController) Delete(c *gin.Context)

func (*UserController) DeleteCollection

func (userController *UserController) DeleteCollection(c *gin.Context)

func (*UserController) Get

func (u *UserController) Get(c *gin.Context)

func (*UserController) List

func (u *UserController) List(c *gin.Context)

func (*UserController) Update

func (userController *UserController) Update(c *gin.Context)

Jump to

Keyboard shortcuts

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