model

package
v0.0.0-...-9a786c4 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2021 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LoginRequest

type LoginRequest struct {
	// binding:"required"修饰的字段,若接收为空值,则报错,是必须字段
	PhoneNumber string `json:"phone_number" binding:"required"`
	Password    string `json:"password" binding:"required"`
}

声明登录接口接收的数据结构

type RegisterRequest

type RegisterRequest struct {
	PhoneNumber string `json:"phone_number" binding:"required"`
	Password    string `json:"password" binding:"required"`
	SMSCode     string `json:"sms_code"`
}

声明注册接口接收的数据结构

type User

type User struct {
	Id          int64
	FirstName   string `db:"first_name"`
	LastName    string `db:"last_name"`
	MobilePhone string `db:"phone"`
	Age         int    `db:"age"`
	Sex         int    `db:"sex"`
	Password    string `db:"password"`
}

Jump to

Keyboard shortcuts

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