user

package
v0.0.0-...-71876dc Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Login

func Login(c *gin.Context)

func LoginStatus

func LoginStatus(c *gin.Context)

func Logout

func Logout(c *gin.Context)

func MyUserPassword

func MyUserPassword(c *gin.Context)

func MyUserSetting

func MyUserSetting(c *gin.Context)

func RoleAdd

func RoleAdd(c *gin.Context)

func RoleDelete

func RoleDelete(c *gin.Context)

func RoleDetail

func RoleDetail(c *gin.Context)

func RoleList

func RoleList(c *gin.Context)

func RolePrivList

func RolePrivList(c *gin.Context)

func RoleUpdate

func RoleUpdate(c *gin.Context)

func UserAdd

func UserAdd(c *gin.Context)

func UserDelete

func UserDelete(c *gin.Context)

func UserDetail

func UserDetail(c *gin.Context)

func UserExists

func UserExists(c *gin.Context)

func UserList

func UserList(c *gin.Context)

func UserUpdate

func UserUpdate(c *gin.Context)

Types

type LoginBind

type LoginBind struct {
	Username string `form:"username" binding:"required"`
	Password string `form:"password" binding:"required"`
}

type QueryBind

type QueryBind struct {
	Keyword string `form:"keyword"`
	Offset  int    `form:"offset"`
	Limit   int    `form:"limit" binding:"required,gte=1,lte=999"`
}

type RoleFormBind

type RoleFormBind struct {
	ID        int    `form:"id"`
	Name      string `form:"name" binding:"required"`
	Privilege []int  `form:"privilege"`
}

type UserExistsQuery

type UserExistsQuery struct {
	ID       int    `form:"id"`
	Username string `form:"username"`
	Email    string `form:"email"`
}

type UserForm

type UserForm struct {
	ID       int    `form:"id"`
	RoleId   int    `form:"role_id" binding:"required"`
	Username string `form:"username" binding:"required"`
	Password string `form:"password"`
	Email    string `form:"email" binding:"required"`
	Truename string `form:"truename"`
	Mobile   string `form:"mobile"`
	Status   int    `form:"status"`
}

type UserPasswordForm

type UserPasswordForm struct {
	Password    string `form:"password"`
	NewPassword string `form:"new_password"`
}

type UserSettingForm

type UserSettingForm struct {
	Truename string `form:"truename"`
	Mobile   string `form:"mobile"`
}

Jump to

Keyboard shortcuts

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