初始化2
This commit is contained in:
@@ -7,6 +7,12 @@ type LoginRequest struct {
|
||||
Password string `json:"password" binding:"required"` // 密码, 必填
|
||||
}
|
||||
|
||||
// AppLoginRequest 应用登录请求(用户名+appId)
|
||||
type AppLoginRequest struct {
|
||||
Username string `json:"username" binding:"required"` // 用户名, 必填
|
||||
AppID string `json:"app_id" binding:"required"` // 开放平台应用ID, 必填
|
||||
}
|
||||
|
||||
// RegisterRequest 注册请求
|
||||
type RegisterRequest struct {
|
||||
Username string `json:"username" binding:"required,min=3,max=64"` // 用户名, 3-64字符
|
||||
|
||||
Reference in New Issue
Block a user