Basic check for User controller

This commit is contained in:
HFO4
2019-11-05 19:49:56 +08:00
parent 74b5bf24a8
commit 6539ae20fa
8 changed files with 133 additions and 2 deletions

View File

@@ -0,0 +1,7 @@
package service
// UserLoginService 管理用户登录的服务
type UserLoginService struct {
UserName string `form:"user_name" json:"user_name" binding:"required,min=5,max=30"`
Password string `form:"password" json:"password" binding:"required,min=8,max=40"`
}