12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- package request
- import (
- "github.com/flipped-aurora/gin-vue-admin/server/model/common/request"
- "github.com/flipped-aurora/gin-vue-admin/server/model/system"
- )
- // User register structure
- type Register struct {
- Username string `json:"userName"`
- Password string `json:"passWord"`
- NickName string `json:"nickName" gorm:"default:'QMPlusUser'"`
- HeaderImg string `json:"headerImg" gorm:"default:'http://www.henrongyi.top/avatar/lufu.jpg'"`
- AuthorityId string `json:"authorityId" gorm:"default:888"`
- AuthorityIds []string `json:"authorityIds"`
- }
- type RegisterWx struct {
- Username string `json:"username"`
- NickName string `json:"nickName"`
- OpenId string `json:"openId"`
- HeaderImg string `json:"headerImg" gorm:"default:'http://www.henrongyi.top/avatar/lufu.jpg'"`
- }
- // User login structure
- type Login struct {
- Username string `json:"username"` // 用户名
- Password string `json:"password"` // 密码
- Captcha string `json:"captcha"` // 验证码
- CaptchaId string `json:"captchaId"` // 验证码ID
- }
- type LoginWx struct {
- Code string `json:"code"` // 微信效验码
- }
- // Modify password structure
- type ChangePasswordStruct struct {
- Username string `json:"username"` // 用户名
- Password string `json:"password"` // 密码
- NewPassword string `json:"newPassword"` // 新密码
- }
- // Modify user's auth structure
- type SetUserAuth struct {
- AuthorityId string `json:"authorityId"` // 角色ID
- }
- type UserSearch struct {
- system.SysUser
- request.PageInfo
- }
- // Modify user's auth structure
- type SetUserAuthorities struct {
- ID uint
- AuthorityIds []string `json:"authorityIds"` // 角色ID
- }
|