syncd: github.com/dreamans/syncd/router/user Index | Files

package user

import "github.com/dreamans/syncd/router/user"

Index

Package Files

login.go my.go role.go user.go

func Login Uses

func Login(c *gin.Context)

func LoginStatus Uses

func LoginStatus(c *gin.Context)

func Logout Uses

func Logout(c *gin.Context)

func MyUserPassword Uses

func MyUserPassword(c *gin.Context)

func MyUserSetting Uses

func MyUserSetting(c *gin.Context)

func RoleAdd Uses

func RoleAdd(c *gin.Context)

func RoleDelete Uses

func RoleDelete(c *gin.Context)

func RoleDetail Uses

func RoleDetail(c *gin.Context)

func RoleList Uses

func RoleList(c *gin.Context)

func RolePrivList Uses

func RolePrivList(c *gin.Context)

func RoleUpdate Uses

func RoleUpdate(c *gin.Context)

func UserAdd Uses

func UserAdd(c *gin.Context)

func UserDelete Uses

func UserDelete(c *gin.Context)

func UserDetail Uses

func UserDetail(c *gin.Context)

func UserExists Uses

func UserExists(c *gin.Context)

func UserList Uses

func UserList(c *gin.Context)

func UserUpdate Uses

func UserUpdate(c *gin.Context)

type LoginBind Uses

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

type QueryBind Uses

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

type RoleFormBind Uses

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

type UserExistsQuery Uses

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

type UserForm Uses

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 Uses

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

type UserSettingForm Uses

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

Package user imports 6 packages (graph) and is imported by 1 packages. Updated 2019-05-11. Refresh now. Tools for package owners.