Skip to content

Commit

Permalink
fix: 去除无用参数
Browse files Browse the repository at this point in the history
  • Loading branch information
SugarMGP committed Oct 18, 2024
1 parent 38e5775 commit 638d3d8
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions app/controllers/userController/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,11 @@ import (
)

type autoLoginForm struct {
Code string `json:"code" binding:"required"`
LoginType string `json:"type"` // 未使用
Code string `json:"code" binding:"required"`
}
type passwordLoginForm struct {
Username string `json:"username" binding:"required"`
Password string `json:"password" binding:"required"`
LoginType string `json:"type"` // 未使用
Username string `json:"username" binding:"required"`
Password string `json:"password" binding:"required"`
}

func AuthByPassword(c *gin.Context) {
Expand Down

0 comments on commit 638d3d8

Please sign in to comment.