model

package
v0.0.0-...-653fb89 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SysUserColumn = struct {
	Id          string
	Username    string
	Realname    string
	Password    string
	Salt        string
	Sex         string
	Avatar      string
	Status      string
	Deleted     string
	CreatedBy   string
	CreatedTime string
	UpdatedBy   string
	UpdatedTime string
}{
	Id:          "id",
	Username:    "username",
	Realname:    "realname",
	Password:    "password",
	Salt:        "salt",
	Sex:         "sex",
	Avatar:      "avatar",
	Status:      "status",
	Deleted:     "deleted",
	CreatedBy:   "created_by",
	CreatedTime: "created_time",
	UpdatedBy:   "updated_by",
	UpdatedTime: "updated_time",
}

Functions

This section is empty.

Types

type SysDict

type SysDict struct {
	Id          int64     // 标识
	Name        string    // 字典名称
	Code        string    // 字典编码
	Description string    // 描述
	CreatedBy   int64     // 创建人
	CreatedAt   time.Time // 创建时间
	UpdatedBy   int64     // 更新人
	UpdatedAt   time.Time // 更新时间
}

func (SysDict) TableName

func (SysDict) TableName() string

type SysMenu

type SysMenu struct {
	Id          int64     // 标识
	ParentId    int64     // 父标识
	Name        string    // 菜单名称
	Url         string    // 菜单路径
	Sort        int       // 菜单排序
	Icon        string    // 菜单图标
	Description string    // 描述
	CreatedBy   int64     // 创建人
	CreatedAt   time.Time // 创建时间
	UpdatedBy   int64     // 更新人
	UpdatedAt   time.Time // 更新时间
}

func (SysMenu) TableName

func (SysMenu) TableName() string

type SysPermission

type SysPermission struct {
	Id int64 // 标识

	Name      string    // 权限名称
	Code      string    // 权限编码
	Status    string    // 权限状态
	CreatedBy int64     // 创建人
	CreatedAt time.Time // 创建时间
	UpdatedBy int64     // 更新人
	UpdatedAt time.Time // 更新时间
	// contains filtered or unexported fields
}

func (SysPermission) TableName

func (SysPermission) TableName() string

type SysRole

type SysRole struct {
	Id          int64     // 标识
	Name        string    // 角色名
	Code        string    // 角色编码
	Description string    // 描述
	CreatedBy   int64     // 创建人
	CreatedAt   time.Time // 创建时间
	UpdatedBy   int64     // 更新人
	UpdatedAt   time.Time // 更新时间
}

func (SysRole) TableName

func (SysRole) TableName() string

type SysUser

type SysUser struct {
	Id        int64        // 标识
	Username  string       // 用户账号
	Realname  string       // 真实姓名
	Password  string       // 密码
	Salt      string       // md5密码盐
	Sex       int64        // 性别【0:未知,1-男,2-女】
	Avatar    string       // 头像
	Status    int64        // 状态【0-正常,1-冻结】
	DeletedAt sql.NullTime // 删除状态【0-正常,1-已删除】
	CreatedBy int64        // 创建人
	CreatedAt time.Time    // 创建时间
	UpdatedBy int64        // 更新人
	UpdatedAt time.Time    // 更新时间
}

func (SysUser) TableName

func (SysUser) TableName() string

Jump to

Keyboard shortcuts

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