user

package
v0.0.0-...-139547c Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type User

type User struct {
	model.BaseModel
	Email    string `json:"email" gorm:"column:email;default:null"`
	Phone    string `json:"phone" gorm:"column:phone" validate:"gt=10"`
	Nickname string `json:"nickname" gorm:"column:nickname"`
	Birthday string `json:"birthday" gorm:"column:birthday;default:null"`
	Avatar   string `json:"avatar" gorm:"column:avatar"`
	Gender   string `json:"gender" gorm:"column:gender;default:'male'"`
	Level    int    `json:"level" gorm:"column:level;default:1"`
	Password string `json:"-" gorm:"column:password;default:null" validate:"gt=5"`
	Bio      string `json:"bio" gorm:"column:bio;default:null"`
}

Jump to

Keyboard shortcuts

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