model

package
v0.0.0-...-5e5f9fa Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const TableNameSysUser = "sys_user"

Variables

This section is empty.

Functions

This section is empty.

Types

type SysUser

type SysUser struct {
	ID       int64  `gorm:"column:id;type:int;primaryKey;autoIncrement:true;comment:ID" json:"id"` // ID
	Username string `gorm:"column:username;type:varchar(50);not null;comment:用户名" json:"username"` // 用户名
	Password string `gorm:"column:password;type:varchar(100);not null;comment:密码" json:"password"` // 密码
	Nickname string `gorm:"column:nickname;type:varchar(100);comment:昵称" json:"nickname"`          // 昵称
	DepID    int64  `gorm:"column:dep_id;type:int" json:"dep_id"`
	PosID    string `gorm:"column:pos_id;type:varchar(255)" json:"pos_id"`
}

SysUser 用户表

func (*SysUser) TableName

func (*SysUser) TableName() string

TableName SysUser's table name

Jump to

Keyboard shortcuts

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