Documentation ¶
Overview ¶
*
- @describe menuDto
- @author mwqnice
- @since 2023/9/9
- @File : menu
*
- @describe linkDto
- @author mwqnice
- @since 2023/9/9
- @File : link
*
- @describe 登录Dto
- @author mwqnice
- @since 2023/9/9
- @File : login
Index ¶
- type AdminUserLoginRequest
- type CaptchaResponse
- type CheckPwdRequest
- type CreateAdminMenuRequest
- type CreateAdminRoleRequest
- type CreateAdminUserRequest
- type CreateLinkRequest
- type GetAdminMenuListRequest
- type GetAdminRoleListRequest
- type GetAdminUserListRequest
- type GetLinkListRequest
- type SaveAdminRoleMenuRequest
- type SetAdminRoleStatusRequest
- type SetAdminUserStatusRequest
- type SetLinkStatusRequest
- type SuccessResponse
- type UpdateAdminMenuRequest
- type UpdateAdminRoleRequest
- type UpdateAdminUserRequest
- type UpdateLinkRequest
- type UpdatePwdRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdminUserLoginRequest ¶
type AdminUserLoginRequest struct { UserName string `form:"username" binding:"required,min=5,max=30" json:"username"` Password string `form:"password" binding:"required,min=6,max=12" json:"password"` Captcha string `form:"captcha" binding:"required,min=4,max=6" json:"captcha"` IdKey string `form:"idkey" binding:"required" json:"idkey"` Ip string `json:"ip"` }
AdminUserLoginRequest 系统登录
type CaptchaResponse ¶
type CheckPwdRequest ¶
type CheckPwdRequest struct { Password string `form:"password" binding:"required" json:"password"` UserId int `json:"user_id"` }
CheckPwdRequest 更新密码请求
type CreateAdminMenuRequest ¶
type CreateAdminMenuRequest struct { Name string `form:"name" binding:"required" json:"name"` // 菜单标题 Icon string `form:"icon" json:"icon"` // 图标 Url string `form:"url" binding:"required" json:"url"` // URL地址 Pid string `form:"pid" json:"pid"` // 上级ID Type string `form:"type" json:"type"` // 类型:1模块 2导航 3菜单 4节点 Permission string `form:"permission" binding:"required" json:"permission"` // 权限标识 Status string `form:"status" binding:"required" json:"status"` // 状态:1正常 2禁用 IsShow string `form:"is_show" json:"is_show"` // 是否显示:1显示 2隐藏 Remark string `form:"remark" json:"remark"` // 菜单备注 Sort string `form:"sort" json:"sort"` // 显示顺序 }
CreateAdminMenuRequest 添加菜单
type CreateAdminRoleRequest ¶
type CreateAdminRoleRequest struct { Name string `form:"name" binding:"required" json:"name"` Code string `form:"code" binding:"required" json:"code"` Status string `form:"status" binding:"required" json:"status"` Sort string `form:"sort" json:"sort"` }
CreateAdminRoleRequest 添加角色
type CreateAdminUserRequest ¶
type CreateAdminUserRequest struct { Realname string `form:"realname" binding:"required" json:"realname"` Gender string `form:"gender" binding:"required" json:"gender"` Avatar string `form:"avatar" binding:"required" json:"avatar"` Mobile string `form:"mobile" binding:"required" json:"mobile"` Email string `form:"email" binding:"required" json:"email"` Username string `form:"username" binding:"required" json:"username"` Password string `form:"password" json:"password"` Address string `form:"address" json:"address"` Intro string `form:"intro" json:"intro"` Status string `form:"status" json:"status"` RoleIds string `form:"role_ids" json:"role_ids"` // 用户角色 }
添加用户
type CreateLinkRequest ¶
type CreateLinkRequest struct { Name string `form:"name" binding:"required" json:"name"` // 菜单标题 Url string `form:"url" binding:"required" json:"url"` // URL地址 Image string `form:"image" json:"image"` // 图片 Status string `form:"status" binding:"required" json:"status"` // 状态:1正常 2禁用 Sort string `form:"sort" json:"sort"` // 显示顺序 }
CreateLinkRequest 添加友链
type GetAdminMenuListRequest ¶
type GetAdminMenuListRequest struct { Name string `form:"name" json:"name"` Status int `json:"status"` Page int64 `form:"page" json:"page"` PageSize int64 `form:"page_size" json:"page_size"` }
GetAdminMenuListRequest 获取菜单列表
type GetAdminRoleListRequest ¶
type GetAdminRoleListRequest struct { Name string `form:"name" json:"name"` Status string `form:"name" json:"status"` Page int64 `form:"page" json:"page"` PageSize int64 `form:"page_size" json:"page_size"` }
GetAdminRoleListRequest 获取角色列表
type GetAdminUserListRequest ¶
type GetAdminUserListRequest struct { Name string `form:"name" json:"name"` Page int64 `form:"page" json:"page"` PageSize int64 `form:"page_size" json:"page_size"` }
GetAdminMenuListRequest 获取菜单列表
type GetLinkListRequest ¶
type GetLinkListRequest struct { Name string `form:"name" json:"name"` Status int `json:"status"` Page int64 `form:"page" json:"page"` PageSize int64 `form:"page_size" json:"page_size"` }
GetLinkListRequest 获取友链列表
type SaveAdminRoleMenuRequest ¶
type SaveAdminRoleMenuRequest struct { RoleId int `form:"role_id" binding:"required" json:"role_id"` MenuIds string `form:"menu_ids" binding:"required" json:"menu_ids"` }
SaveAdminRoleMenuRequest 保存角色菜单
type SetAdminRoleStatusRequest ¶
type SetAdminRoleStatusRequest struct { Id string `form:"id" binding:"required" json:"id"` Status string `form:"status" binding:"required" json:"status"` }
SetAdminRoleStatusRequest 设置状态
type SetAdminUserStatusRequest ¶
type SetAdminUserStatusRequest struct { Id string `form:"id" binding:"required"` Status string `form:"status" binding:"required"` }
设置状态
type SetLinkStatusRequest ¶
type SetLinkStatusRequest struct { Id string `form:"id" binding:"required" json:"id"` Status string `form:"status" binding:"required" json:"status"` }
SetLinkStatusRequest 设置状态
type SuccessResponse ¶
type UpdateAdminMenuRequest ¶
type UpdateAdminMenuRequest struct { Id string `form:"id" binding:"required" json:"id"` Name string `form:"name" binding:"required" json:"name"` // 菜单标题 Icon string `form:"icon" json:"icon"` // 图标 Url string `form:"url" binding:"required" json:"url"` // URL地址 Pid string `form:"pid" json:"pid"` // 上级ID Type string `form:"type" json:"type"` // 类型:1模块 2导航 3菜单 4节点 Permission string `form:"permission" binding:"required" json:"permission"` // 权限标识 Status string `form:"status" binding:"required" json:"status"` // 状态:1正常 2禁用 IsShow string `form:"is_show" json:"is_show"` // 是否显示:1显示 2隐藏 Remark string `form:"remark" json:"remark"` // 菜单备注 Sort string `form:"sort" json:"sort"` // 显示顺序 }
UpdateAdminMenuRequest 更新菜单
type UpdateAdminRoleRequest ¶
type UpdateAdminRoleRequest struct { Id string `form:"id" binding:"required" json:"id"` Name string `form:"name" binding:"required" json:"name"` Code string `form:"code" binding:"required" json:"code"` Status string `form:"status" binding:"required" json:"status"` Sort string `form:"sort" json:"sort"` }
UpdateAdminRoleRequest 更新角色
type UpdateAdminUserRequest ¶
type UpdateAdminUserRequest struct { Id string `form:"id" binding:"required" json:"id"` Realname string `form:"realname" binding:"required" json:"realname"` Gender string `form:"gender" binding:"required" json:"gender"` Avatar string `form:"avatar" binding:"required" json:"avatar"` Mobile string `form:"mobile" binding:"required" json:"mobile"` Email string `form:"email" binding:"required" json:"email"` Username string `form:"username" binding:"required" json:"username"` Password string `form:"password" json:"password"` Address string `form:"address" json:"address"` Intro string `form:"intro" json:"intro"` Status string `form:"status" json:"status"` RoleIds string `form:"role_ids" json:"role_ids"` // 用户角色 }
更新用户
type UpdateLinkRequest ¶
type UpdateLinkRequest struct { Id string `form:"id" binding:"required" json:"id"` Name string `form:"name" binding:"required" json:"name"` // 菜单标题 Url string `form:"url" binding:"required" json:"url"` // URL地址 Image string `form:"image" json:"image"` // 图片 Status string `form:"status" binding:"required" json:"status"` // 状态:1正常 2禁用 Sort string `form:"sort" json:"sort"` // 显示顺序 }
UpdateLinkRequest 更新友链
type UpdatePwdRequest ¶
type UpdatePwdRequest struct { OldPassword string `form:"old_password" binding:"required" json:"old_password"` // 旧密码 NewPassword string `form:"new_password" binding:"required" json:"new_password"` // 新密码 RePassword string `form:"re_password" binding:"required" json:"re_password"` // 确认密码 UserId int `json:"user_id"` }
UpdatePwdRequest 更新密码请求
Click to show internal directories.
Click to hide internal directories.