1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- 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"`
- UnionId string `json:"unionId"`
- 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
- }
|