This commit is contained in:
akrike
2025-07-06 22:12:39 +08:00
parent 8aa700407c
commit 39dc4f13e4
11 changed files with 35 additions and 53 deletions

View File

@@ -19,10 +19,10 @@ func (*User) TableName() string {
}
type LoginHandlerReq struct {
Account string `form:"account"`
Password string `form:"password"`
Account string `form:"account" binding:"required"`
Password string `form:"password" binding:"required"`
}
type DeleteUserReq struct {
Account string `form:"account"`
Account string `form:"account" binding:"required"`
}