
AI: 增加了AI前端绘制功能,可以根据描述生成客户端页面【授权用户专属】 自动化: 自动化模板采用了function模式,更加方便用户二次开发和自定义改动 自动化: 默认携带ID和CreatedAt排序 自动化: 所有自动化Select模板默认支持select搜索 优化:http交互报错信息增加防止多次弹出错误遮罩机制 ICON: 优化ICON逻辑,防止多次加载svg 布局:增加侧边分栏模式 布局: 顶栏模式样式优化和高亮逻辑调整 优化: 个人配置不再需要手动点击保存,会根据变化自动保存 BUG: 修复了菜单点击设为主页勾选被取消的bug 安全: 更新了jwt版本,修复CVE-2025-30204 导出: 默认支持软删除过滤 代码: 优化了部分代码逻辑 本次更新需要重新执行 npm i --------- Signed-off-by: joohwan <zhouhuan.chen@yunqutech.com > Co-authored-by: huiyifyj <jxfengyijie@gmail.com> Co-authored-by: piexlMax(奇淼 <qimiaojiangjizhao@gmail.com> Co-authored-by: okppop <okppop@protonmail.com> Co-authored-by: joohwan <zhouhuan.chen@yunqutech.com > Co-authored-by: xuedinge <781408517@qq.com>
71 lines
3.3 KiB
Go
71 lines
3.3 KiB
Go
package request
|
||
|
||
import (
|
||
common "github.com/flipped-aurora/gin-vue-admin/server/model/common/request"
|
||
"github.com/flipped-aurora/gin-vue-admin/server/model/system"
|
||
)
|
||
|
||
// Register User register structure
|
||
type Register struct {
|
||
Username string `json:"userName" example:"用户名"`
|
||
Password string `json:"passWord" example:"密码"`
|
||
NickName string `json:"nickName" example:"昵称"`
|
||
HeaderImg string `json:"headerImg" example:"头像链接"`
|
||
AuthorityId uint `json:"authorityId" swaggertype:"string" example:"int 角色id"`
|
||
Enable int `json:"enable" swaggertype:"string" example:"int 是否启用"`
|
||
AuthorityIds []uint `json:"authorityIds" swaggertype:"string" example:"[]uint 角色id"`
|
||
Phone string `json:"phone" example:"电话号码"`
|
||
Email string `json:"email" example:"电子邮箱"`
|
||
}
|
||
|
||
// Login User login structure
|
||
type Login struct {
|
||
Username string `json:"username"` // 用户名
|
||
Password string `json:"password"` // 密码
|
||
Captcha string `json:"captcha"` // 验证码
|
||
CaptchaId string `json:"captchaId"` // 验证码ID
|
||
}
|
||
|
||
// ChangePasswordReq Modify password structure
|
||
type ChangePasswordReq struct {
|
||
ID uint `json:"-"` // 从 JWT 中提取 user id,避免越权
|
||
Password string `json:"password"` // 密码
|
||
NewPassword string `json:"newPassword"` // 新密码
|
||
}
|
||
|
||
type ResetPassword struct {
|
||
ID uint `json:"ID" form:"ID"`
|
||
Password string `json:"password" form:"password" gorm:"comment:用户登录密码"` // 用户登录密码
|
||
}
|
||
|
||
// SetUserAuth Modify user's auth structure
|
||
type SetUserAuth struct {
|
||
AuthorityId uint `json:"authorityId"` // 角色ID
|
||
}
|
||
|
||
// SetUserAuthorities Modify user's auth structure
|
||
type SetUserAuthorities struct {
|
||
ID uint
|
||
AuthorityIds []uint `json:"authorityIds"` // 角色ID
|
||
}
|
||
|
||
type ChangeUserInfo struct {
|
||
ID uint `gorm:"primarykey"` // 主键ID
|
||
NickName string `json:"nickName" gorm:"default:系统用户;comment:用户昵称"` // 用户昵称
|
||
Phone string `json:"phone" gorm:"comment:用户手机号"` // 用户手机号
|
||
AuthorityIds []uint `json:"authorityIds" gorm:"-"` // 角色ID
|
||
Email string `json:"email" gorm:"comment:用户邮箱"` // 用户邮箱
|
||
HeaderImg string `json:"headerImg" gorm:"default:https://qmplusimg.henrongyi.top/gva_header.jpg;comment:用户头像"` // 用户头像
|
||
SideMode string `json:"sideMode" gorm:"comment:用户侧边主题"` // 用户侧边主题
|
||
Enable int `json:"enable" gorm:"comment:冻结用户"` //冻结用户
|
||
Authorities []system.SysAuthority `json:"-" gorm:"many2many:sys_user_authority;"`
|
||
}
|
||
|
||
type GetUserList struct {
|
||
common.PageInfo
|
||
Username string `json:"username" form:"username"`
|
||
NickName string `json:"nickName" form:"nickName"`
|
||
Phone string `json:"phone" form:"phone"`
|
||
Email string `json:"email" form:"email"`
|
||
}
|