user

package
v0.0.0-...-aeebf62 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 16, 2020 License: MIT Imports: 13 Imported by: 0

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL