Basic check for User controller

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

No files matched your search

+7
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"`
}