model

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const TableNameUser = "users"

Variables

This section is empty.

Functions

This section is empty.

Types

type User

type User struct {
	basemodel.Model
	Username string `json:"username" binding:"required,max=50"`
	Nickname string `json:"nickname" binding:"required,max=50"`
	Phone    string `json:"phone" binding:"required,max=20"`
	Email    string `json:"email" binding:"required,email"`
	PwdHash  string `json:"-"`
	Salt     string `json:"-"`
}

func (*User) TableName

func (*User) TableName() string

Jump to

Keyboard shortcuts

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