model

package
v0.0.0-...-8edd1ee Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// 正常
	UserStateNormal = 1
	// 禁用
	UserStateDisable = 2
)

用户的状态

Variables

This section is empty.

Functions

func Setup

func Setup()

Types

type User

type User struct {
	db.Model

	// 用户名
	Username string `json:"username"`
	// 密码
	Password string `json:"password"`
	// 用户状态
	State uint `json:"state"`
	// 用户头像
	Avatar string `json:"avatar"`
}

Jump to

Keyboard shortcuts

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