Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
app.Controller
}
定义控制器
func (*Controller) CheckToken ¶
func (c *Controller) CheckToken(r *ghttp.Request)
func (*Controller) Login ¶
func (c *Controller) Login(r *ghttp.Request)
func (*Controller) Logout ¶
func (c *Controller) Logout(r *ghttp.Request)
type SignInRequest ¶
type SignInRequest struct { Username string `v:"required#账号不能为空"` Password string `v:"required#密码不能为空"` }
登录
type SignUpInput ¶
type SignUpInput struct { Username string `v:"required|length:6,16#账号不能为空|账号长度应当在:min到:max之间"` Password string `v:"required|length:6,16#请输入确认密码|密码长度应当在:min到:max之间"` Password2 string `v:"required|length:6,16|same:Password#密码不能为空|密码长度应当在:min到:max之间|两次密码输入不相等"` Nickname string }
注册输入参数
type SignUpRequest ¶
type SignUpRequest struct {
SignUpInput
}
Click to show internal directories.
Click to hide internal directories.