userController

package
v0.0.0-...-fdfd418 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChangeLoginPassword

func ChangeLoginPassword(ctx *gin.Context)

func ChangePassword

func ChangePassword(ctx *gin.Context)

func Delete

func Delete(ctx *gin.Context)

func Detail

func Detail(ctx *gin.Context)

Detail 用户详情

func Index

func Index(ctx *gin.Context)

Index 用户列表页

func Login

func Login(ctx *gin.Context)

func Logout

func Logout(ctx *gin.Context)

func NotFound

func NotFound(c *gin.Context)

设置默认路由当访问一个错误网站时返回

func Param

func Param(ctx *gin.Context)

func Query

func Query(ctx *gin.Context)

func Save

func Save(ctx *gin.Context)

func Update

func Update(ctx *gin.Context)

Types

type UserForm

type UserForm struct {
	UserId      int64
	UserIds     []int64
	Username    string // 用户名
	Password    string // 密码
	NewPassword string // 确认密码
	Email       string // 邮箱
	IsAdmin     int8   // 是否是管理员 1:管理员 0:普通用户
	Status      int8   // 启用状态 1:启动 0:禁用
	CreateTime  string // 创建时间
	UpdateTime  string // 修改时间
}

UserForm 用户表单

Jump to

Keyboard shortcuts

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