package
Version:
v0.0.0-...-7dcfe9a
Opens a new window with list of versions in this module.
Published: Mar 10, 2023
License: MIT
Opens a new window with license information.
Imports: 14
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func Add(ctx iris.Context)
新增用户
func GetUserInfo(ctx iris.Context)
获取用户信息
func GetUserList(ctx iris.Context)
获取用户列表
func UpdateUserInfo(ctx iris.Context)
UpdateUserInfo 修改用户信息
func UpdateUserRoles(ctx iris.Context)
UpdateUserRoles 修改用户角色
@deprecate
func UpdateUserStatus(ctx iris.Context)
UpdateUserStatus 修改用户状态
type AddReq struct {
UserNo string `json:"userNo,omitempty"`
UserName string `json:"userName,omitempty"`
Email string `json:"email,omitempty"`
Phone string `json:"phone,omitempty"`
Password string `json:"password,omitempty"`
Status int `json:"status,omitempty"`
}
type AddResp struct {
Uid int `json:"uid,omitempty"`
app.Response
}
type RoleInfo struct {
RoleId int `json:"roleId,omitempty"`
RoleName string `json:"roleName,omitempty"`
}
type StatusReq struct {
Status int `json:"status"`
}
type UpdateUserReq struct {
UserName string `json:"userName,omitempty"`
UserNo string `json:"userNo,omitempty"`
Email string `json:"email,omitempty"`
Phone string `json:"phone,omitempty"`
}
type UserInfo struct {
UserNo string `json:"userNo,omitempty"`
UserName string `json:"userName,omitempty"`
Email string `json:"email,omitempty"`
Phone string `json:"phone,omitempty"`
Status int `json:"status,omitempty"`
UserId int `json:"userId,omitempty"`
Ctime time.Time `json:"ctime,omitempty"`
}
type UserInfoResp struct {
app.Response
UserInfo
Roles []int `json:"roles,omitempty"`
}
type UserRolesReq struct {
RoleIds string `json:"roleIds,omitempty"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.