go-wxhelper/model/param/login/login.go

25 lines
976 B
Go
Raw Permalink Normal View History

2024-01-19 12:06:30 +08:00
package login
// GetTokenWithPassword
// @description: 账号密码登录
type GetTokenWithPassword struct {
VerifyId string `json:"verifyId" form:"verifyId" binding:"required"` // 验证Id
VerifyCode string `json:"verifyCode" form:"verifyCode" binding:"required"` // 验证码
Username string `json:"username" form:"username" binding:"required"` // 用户名
Password string `json:"password" form:"password" binding:"required"` // 密码
}
// RefreshToken
// @description: 刷新Token入参
type RefreshToken struct {
RefreshToken string `json:"refresh_token" form:"refresh_token" binding:"required"` // 刷新Token
}
// Register
// @description: 注册账号
type Register struct {
Username string `json:"username" form:"username" binding:"required"` // 用户名
Password string `json:"password" form:"password" binding:"required"` // 密码
InvitationCode string `json:"invitationCode" form:"invitationCode"` // 邀请码
}