mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-12 12:20:25 +08:00
refactor: oauth2登录重构
This commit is contained in:
13
server/internal/auth/api/form/form.go
Normal file
13
server/internal/auth/api/form/form.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package form
|
||||
|
||||
type LoginForm struct {
|
||||
Username string `json:"username" binding:"required"`
|
||||
Password string `binding:"required"`
|
||||
Captcha string `json:"captcha"`
|
||||
Cid string `json:"cid"`
|
||||
}
|
||||
|
||||
type OtpVerfiy struct {
|
||||
OtpToken string `json:"otpToken" binding:"required"`
|
||||
Code string `json:"code" binding:"required"`
|
||||
}
|
||||
Reference in New Issue
Block a user