You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
package request
import uuid "github.com/satori/go.uuid"
// User register structure
type RegisterStruct 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"` }
// User login structure
type RegisterAndLoginStruct struct { Username string `json:"username"` Password string `json:"password"` Captcha string `json:"captcha"` CaptchaId string `json:"captchaId"` }
// 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 { UUID uuid.UUID `json:"uuid"` AuthorityId string `json:"authorityId"` }
|