auth

package
v0.0.0-...-6f9dc6e Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Login

type Login struct {
	Phone    string `form:"phone" json:"phone" xml:"phone"  binding:"required,len=11" label:"手机号码"`
	Password string `form:"password" json:"password" xml:"password"  binding:"required,min=6" label:"密码"`
}

type Register

type Register struct {
	Phone      string `form:"phone" json:"phone" xml:"phone"  binding:"required,len=11" label:"手机号码"`
	SmsCode    string `form:"sms_code" json:"sms_code" xml:"sms_code"  binding:"required,len=6" label:"短信验证码"`
	Password   string `form:"password" json:"password" xml:"password"  binding:"required,min=6" label:"密码"`
	RePassword string `form:"re_password" json:"re_password" binding:"required,eqfield=Password" label:"确认密码"` //跨字段
}

Jump to

Keyboard shortcuts

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