model

package
v0.0.0-...-d1760a8 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const TableNameCasbinRule = "casbin_rule"
View Source
const TableNameJwtBlacklist = "jwt_blacklists"
View Source
const TableNameLogJob = "log_jobs"
View Source
const TableNameLogLogin = "log_logins"
View Source
const TableNameLogOper = "log_opers"
View Source
const TableNameSysAPI = "sys_apis"
View Source
const TableNameSysDept = "sys_depts"
View Source
const TableNameSysDictDatum = "sys_dict_data"
View Source
const TableNameSysDictType = "sys_dict_types"
View Source
const TableNameSysDiscovery = "sys_discovery"
View Source
const TableNameSysJob = "sys_jobs"
View Source
const TableNameSysMenu = "sys_menus"
View Source
const TableNameSysMenuBtn = "sys_menu_btns"
View Source
const TableNameSysPost = "sys_posts"
View Source
const TableNameSysRole = "sys_roles"
View Source
const TableNameSysRoleBtn = "sys_role_btns"
View Source
const TableNameSysRoleDept = "sys_role_depts"
View Source
const TableNameSysRoleMenu = "sys_role_menus"
View Source
const TableNameSysUser = "sys_users"

Variables

This section is empty.

Functions

This section is empty.

Types

type CasbinRule

type CasbinRule struct {
	ID    int64  `gorm:"column:id;type:bigint(20);primaryKey;autoIncrement:true" json:"id"`
	Ptype string `gorm:"column:ptype;type:varchar(100);not null" json:"ptype"`
	V0    string `gorm:"column:v0;type:varchar(100)" json:"v0"`
	V1    string `gorm:"column:v1;type:varchar(100)" json:"v1"`
	V2    string `gorm:"column:v2;type:varchar(100)" json:"v2"`
	V3    string `gorm:"column:v3;type:varchar(100)" json:"v3"`
	V4    string `gorm:"column:v4;type:varchar(100)" json:"v4"`
	V5    string `gorm:"column:v5;type:varchar(100)" json:"v5"`
}

CasbinRule mapped from table <casbin_rule>

func (*CasbinRule) TableName

func (*CasbinRule) TableName() string

TableName CasbinRule's table name

type JwtBlacklist

type JwtBlacklist struct {
	ID        int64          `gorm:"column:id;type:bigint(20);primaryKey;autoIncrement:true" json:"id"`
	Jwt       string         `gorm:"column:jwt;type:text;comment:jwt" json:"jwt"`
	CreatedAt time.Time      `gorm:"column:created_at;type:datetime;comment:创建时间" json:"created_at"`
	UpdatedAt time.Time      `gorm:"column:updated_at;type:datetime;comment:更新时间" json:"updated_at"`
	DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;type:datetime;comment:删除时间" json:"deleted_at"`
}

JwtBlacklist mapped from table <jwt_blacklists>

func (*JwtBlacklist) TableName

func (*JwtBlacklist) TableName() string

TableName JwtBlacklist's table name

type LogJob

type LogJob struct {
	ID           int64          `gorm:"column:id;type:bigint(20);primaryKey;autoIncrement:true;comment:主键id" json:"id"`
	Name         string         `gorm:"column:name;type:varchar(128);not null;comment:任务名称" json:"name"`
	JobGroup     string         `gorm:"column:job_group;type:varchar(128);not null;comment:分组" json:"job_group"`
	EntryID      int32          `gorm:"column:entry_id;type:int(11);not null;comment:任务id" json:"entry_id"`
	InvokeTarget string         `gorm:"column:invoke_target;type:varchar(128);not null;comment:调用方法" json:"invoke_target"`
	LogInfo      string         `gorm:"column:log_info;type:varchar(255);not null;comment:日志信息" json:"log_info"`
	Status       int32          `gorm:"column:status;type:tinyint(2);not null;default:1;comment:1=正常 2=异常" json:"status"`
	CreatedAt    time.Time      `gorm:"column:created_at;type:datetime;comment:创建时间" json:"created_at"`
	UpdatedAt    time.Time      `gorm:"column:updated_at;type:datetime;comment:更新时间" json:"updated_at"`
	DeletedAt    gorm.DeletedAt `gorm:"column:deleted_at;type:datetime;comment:删除时间" json:"deleted_at"`
}

LogJob mapped from table <log_jobs>

func (*LogJob) TableName

func (*LogJob) TableName() string

TableName LogJob's table name

type LogLogin

type LogLogin struct {
	ID            int64          `gorm:"column:id;type:bigint(20);primaryKey;autoIncrement:true;comment:主键id" json:"id"`
	Username      string         `gorm:"column:username;type:varchar(128);not null;comment:用户名" json:"username"`
	Status        int32          `gorm:"column:status;type:tinyint(2);not null;default:1;comment:1=正常 2=异常" json:"status"`
	Ipaddr        string         `gorm:"column:ipaddr;type:varchar(255);not null;comment:ip地址" json:"ipaddr"`
	LoginLocation string         `gorm:"column:login_location;type:varchar(255);not null;comment:归属地" json:"login_location"`
	Browser       string         `gorm:"column:browser;type:varchar(255);not null;comment:浏览器" json:"browser"`
	Os            string         `gorm:"column:os;type:varchar(255);not null;comment:系统" json:"os"`
	Platform      string         `gorm:"column:platform;type:varchar(255);not null;comment:固件" json:"platform"`
	CreateBy      string         `gorm:"column:create_by;type:varchar(128);not null;comment:创建人" json:"create_by"`
	UpdateBy      string         `gorm:"column:update_by;type:varchar(128);not null;comment:更新者" json:"update_by"`
	Remark        string         `gorm:"column:remark;type:varchar(255);not null;comment:备注" json:"remark"`
	Msg           string         `gorm:"column:msg;type:varchar(255);not null;comment:消息" json:"msg"`
	LoginTime     time.Time      `gorm:"column:login_time;type:timestamp;comment:登录时间" json:"login_time"`
	CreatedAt     time.Time      `gorm:"column:created_at;type:datetime;comment:创建时间" json:"created_at"`
	UpdatedAt     time.Time      `gorm:"column:updated_at;type:datetime;comment:更新时间" json:"updated_at"`
	DeletedAt     gorm.DeletedAt `gorm:"column:deleted_at;type:datetime;comment:删除时间" json:"deleted_at"`
}

LogLogin mapped from table <log_logins>

func (*LogLogin) TableName

func (*LogLogin) TableName() string

TableName LogLogin's table name

type LogOper

type LogOper struct {
	ID           int64          `gorm:"column:id;type:bigint(20);primaryKey;autoIncrement:true;comment:主键id" json:"id"`
	Title        string         `gorm:"column:title;type:varchar(128);not null;comment:操作的模块" json:"title"`
	BusinessType int32          `gorm:"column:business_type;type:tinyint(2);not null;comment:0其它 1新增 2修改 3删除" json:"business_type"`
	URL          string         `gorm:"column:url;type:varchar(255);not null;comment:操作url" json:"url"`
	Method       string         `gorm:"column:method;type:varchar(20);not null;comment:请求方法" json:"method"`
	UserName     string         `gorm:"column:user_name;type:varchar(255);not null;comment:操作人员" json:"user_name"`
	UserID       int64          `gorm:"column:user_id;type:bigint(20);not null;comment:用户id" json:"user_id"`
	IP           string         `gorm:"column:ip;type:varchar(16);not null;comment:操作IP" json:"ip"`
	Agent        string         `gorm:"column:agent;type:varchar(16);not null;comment:代理" json:"agent"`
	Latency      int32          `gorm:"column:latency;type:int(11);not null;comment:延迟" json:"latency"`
	Resp         string         `gorm:"column:resp;type:varchar(255);not null;comment:请求参数" json:"resp"`
	Status       int32          `gorm:"column:status;type:tinyint(2);not null;default:1;comment:1=正常 2=异常" json:"status"`
	ErrorMessage string         `gorm:"column:error_message;type:varchar(191);not null;comment:错误信息" json:"error_message"`
	CreatedAt    time.Time      `gorm:"column:created_at;type:datetime;comment:创建时间" json:"created_at"`
	UpdatedAt    time.Time      `gorm:"column:updated_at;type:datetime;comment:更新时间" json:"updated_at"`
	DeletedAt    gorm.DeletedAt `gorm:"column:deleted_at;type:datetime;comment:删除时间" json:"deleted_at"`
}

LogOper mapped from table <log_opers>

func (*LogOper) TableName

func (*LogOper) TableName() string

TableName LogOper's table name

type SysAPI

type SysAPI struct {
	ID          int64          `gorm:"column:id;type:bigint(20);primaryKey;autoIncrement:true;comment:主键id" json:"id"`
	Path        string         `gorm:"column:path;type:varchar(191);not null;comment:api路径" json:"path"`
	Description string         `gorm:"column:description;type:varchar(191);not null;comment:api中文描述" json:"description"`
	APIGroup    string         `gorm:"column:api_group;type:varchar(191);not null;comment:api组" json:"api_group"`
	Method      string         `gorm:"column:method;type:varchar(20);not null;comment:方法" json:"method"`
	CreatedAt   time.Time      `gorm:"column:created_at;type:datetime;comment:创建时间" json:"created_at"`
	UpdatedAt   time.Time      `gorm:"column:updated_at;type:datetime;comment:更新时间" json:"updated_at"`
	DeletedAt   gorm.DeletedAt `gorm:"column:deleted_at;type:datetime;comment:删除时间" json:"deleted_at"`
}

SysAPI mapped from table <sys_apis>

func (*SysAPI) TableName

func (*SysAPI) TableName() string

TableName SysAPI's table name

type SysDept

type SysDept struct {
	ID        int64          `gorm:"column:id;type:bigint(20);primaryKey;autoIncrement:true;comment:主键id" json:"id"`
	ParentID  int64          `gorm:"column:parent_id;type:bigint(20);not null;comment:上级部门" json:"parent_id"`
	DeptPath  string         `gorm:"column:dept_path;type:varchar(255);not null;comment:部门路径" json:"dept_path"`
	DeptName  string         `gorm:"column:dept_name;type:varchar(128);not null;comment:部门名称" json:"dept_name"`
	Sort      int32          `gorm:"column:sort;type:int(11);not null;comment:排序" json:"sort"`
	Leader    string         `gorm:"column:leader;type:varchar(64);not null;comment:负责人" json:"leader"`
	Phone     string         `gorm:"column:phone;type:varchar(11);not null;comment:手机" json:"phone"`
	Email     string         `gorm:"column:email;type:varchar(64);not null;comment:邮箱" json:"email"`
	Status    int32          `gorm:"column:status;type:tinyint(4);not null;default:1;comment:状态 1=正常 2-冻结" json:"status"`
	CreateBy  string         `gorm:"column:create_by;type:varchar(64);not null;comment:创建人" json:"create_by"`
	UpdateBy  string         `gorm:"column:update_by;type:varchar(64);not null;comment:修改人" json:"update_by"`
	CreatedAt time.Time      `gorm:"column:created_at;type:datetime;comment:创建时间" json:"created_at"`
	UpdatedAt time.Time      `gorm:"column:updated_at;type:datetime;comment:更新时间" json:"updated_at"`
	DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;type:datetime;comment:删除时间" json:"deleted_at"`
}

SysDept mapped from table <sys_depts>

func (*SysDept) TableName

func (*SysDept) TableName() string

TableName SysDept's table name

type SysDictDatum

type SysDictDatum struct {
	DictCode   int64     `gorm:"column:dict_code;type:bigint(20);primaryKey;autoIncrement:true" json:"dict_code"`
	DictSort   int32     `gorm:"column:dict_sort;type:int(11);comment:排序" json:"dict_sort"`
	DictLabel  string    `gorm:"column:dict_label;type:varchar(64);comment:标签" json:"dict_label"`
	DictValue  string    `gorm:"column:dict_value;type:varchar(64);comment:值" json:"dict_value"`
	DictType   string    `gorm:"column:dict_type;type:varchar(64);comment:字典类型" json:"dict_type"`
	Status     int32     `gorm:"column:status;type:tinyint(2);comment:状态(0正常 1停用)" json:"status"`
	CSSClass   string    `gorm:"column:css_class;type:varchar(128);comment:CssClass" json:"css_class"`
	ListClass  string    `gorm:"column:list_class;type:varchar(128);comment:ListClass" json:"list_class"`
	IsDefault  string    `gorm:"column:is_default;type:varchar(8);comment:IsDefault" json:"is_default"`
	CreateBy   string    `gorm:"column:create_by;type:varchar(191)" json:"create_by"`
	UpdateBy   string    `gorm:"column:update_by;type:varchar(191)" json:"update_by"`
	Remark     string    `gorm:"column:remark;type:varchar(256);comment:备注" json:"remark"`
	CreateTime time.Time `gorm:"column:create_time;type:datetime" json:"create_time"`
	UpdateTime time.Time `gorm:"column:update_time;type:datetime" json:"update_time"`
	DeleteTime time.Time `gorm:"column:delete_time;type:datetime" json:"delete_time"`
}

SysDictDatum mapped from table <sys_dict_data>

func (*SysDictDatum) TableName

func (*SysDictDatum) TableName() string

TableName SysDictDatum's table name

type SysDictType

type SysDictType struct {
	DictID     int64     `gorm:"column:dict_id;type:bigint(20);primaryKey;autoIncrement:true" json:"dict_id"`
	DictName   string    `gorm:"column:dict_name;type:varchar(64);comment:名称" json:"dict_name"`
	DictType   string    `gorm:"column:dict_type;type:varchar(64);comment:类型" json:"dict_type"`
	Status     int32     `gorm:"column:status;type:tinyint(2);comment:状态" json:"status"`
	CreateBy   string    `gorm:"column:create_by;type:varchar(191)" json:"create_by"`
	UpdateBy   string    `gorm:"column:update_by;type:varchar(191)" json:"update_by"`
	Remark     string    `gorm:"column:remark;type:varchar(256);comment:备注" json:"remark"`
	CreateTime time.Time `gorm:"column:create_time;type:datetime" json:"create_time"`
	UpdateTime time.Time `gorm:"column:update_time;type:datetime" json:"update_time"`
	DeleteTime time.Time `gorm:"column:delete_time;type:datetime" json:"delete_time"`
}

SysDictType mapped from table <sys_dict_types>

func (*SysDictType) TableName

func (*SysDictType) TableName() string

TableName SysDictType's table name

type SysDiscovery

type SysDiscovery struct {
	ID      int32  `gorm:"column:id;type:int(11);primaryKey;autoIncrement:true" json:"id"`
	Name    string `gorm:"column:name;type:varchar(255);comment:名称" json:"name"`
	Picture string `gorm:"column:picture;type:varchar(255);comment:发现页图片" json:"picture"`
	Rank    int32  `gorm:"column:rank;type:int(11);default:1;comment:排序" json:"rank"`
	Link    string `gorm:"column:link;type:varchar(255);comment:发现页链接" json:"link"`
	Status  int32  `gorm:"column:status;type:int(11);default:1;comment:发现页状态, 1-正常,2-异常" json:"status"`
}

SysDiscovery mapped from table <sys_discovery>

func (*SysDiscovery) TableName

func (*SysDiscovery) TableName() string

TableName SysDiscovery's table name

type SysJob

type SysJob struct {
	ID             int64          `gorm:"column:id;type:bigint(20);primaryKey;autoIncrement:true;comment:主键id" json:"id"`
	JobName        string         `gorm:"column:job_name;type:varchar(255);not null;comment:任务名称" json:"job_name"`
	JobGroup       string         `gorm:"column:job_group;type:varchar(255);comment:任务组" json:"job_group"`
	JobType        int32          `gorm:"column:job_type;type:tinyint(2);comment:任务类型" json:"job_type"`
	CronExpression string         `gorm:"column:cron_expression;type:varchar(255);comment:cron表达式" json:"cron_expression"`
	InvokeTarget   string         `gorm:"column:invoke_target;type:varchar(255);comment:调用目标" json:"invoke_target"`
	Args           string         `gorm:"column:args;type:varchar(255);comment:目标参数" json:"args"`
	MisfirePolicy  int32          `gorm:"column:misfire_policy;type:tinyint(2);comment:执行策略" json:"misfire_policy"`
	Concurrent     int32          `gorm:"column:concurrent;type:tinyint(2);default:2;comment:是否并发 1=是 2=否" json:"concurrent"`
	Status         int32          `gorm:"column:status;type:tinyint(2);default:1;comment:1=正常 2=异常" json:"status"`
	EntryID        int32          `gorm:"column:entry_id;type:int(11);comment:job启动时返回的id" json:"entry_id"`
	CreateBy       string         `gorm:"column:create_by;type:varchar(128);comment:创建人" json:"create_by"`
	UpdateBy       string         `gorm:"column:update_by;type:varchar(128);comment:更新者" json:"update_by"`
	CreatedAt      time.Time      `gorm:"column:created_at;type:datetime;comment:创建时间" json:"created_at"`
	UpdatedAt      time.Time      `gorm:"column:updated_at;type:datetime;comment:更新时间" json:"updated_at"`
	DeletedAt      gorm.DeletedAt `gorm:"column:deleted_at;type:datetime;comment:删除时间" json:"deleted_at"`
}

SysJob mapped from table <sys_jobs>

func (*SysJob) TableName

func (*SysJob) TableName() string

TableName SysJob's table name

type SysMenu

type SysMenu struct {
	ID         int64          `gorm:"column:id;type:bigint(20);primaryKey;autoIncrement:true" json:"id"`
	MenuName   string         `gorm:"column:menu_name;type:varchar(128);not null;comment:菜单名称" json:"menu_name"`
	Title      string         `gorm:"column:title;type:varchar(128);not null;comment:附加属性" json:"title"`
	ParentID   int64          `gorm:"column:parent_id;type:bigint(20);not null;comment:父级菜单id" json:"parent_id"`
	Sort       int32          `gorm:"column:sort;type:int(4);not null;comment:排序" json:"sort"`
	Icon       string         `gorm:"column:icon;type:varchar(128);not null;comment:菜单图标" json:"icon"`
	Path       string         `gorm:"column:path;type:varchar(128);not null;comment:路由地址" json:"path"`
	Component  string         `gorm:"column:component;type:varchar(255);not null;comment:组件路径" json:"component"`
	IsIframe   int32          `gorm:"column:is_iframe;type:tinyint(2);not null;default:2;comment:是否为内嵌 1=是 2=否" json:"is_iframe"`
	Link       string         `gorm:"column:link;type:varchar(255);not null;comment:超链接" json:"link"`
	MenuType   string         `gorm:"column:menu_type;type:varchar(1);not null;default:1;comment:菜单类型(1目录 2菜单 3按钮)" json:"menu_type"`
	Hidden     int32          `gorm:"column:hidden;type:tinyint(2);not null;default:1;comment:显示状态(0显示 1隐藏)" json:"hidden"`
	KeepAlive  int32          `gorm:"column:keep_alive;type:tinyint(2);not null;default:1;comment:是否缓存组件状态(1是 2否)" json:"keep_alive"`
	IsAffix    int32          `` /* 128-byte string literal not displayed */
	Permission string         `gorm:"column:permission;type:varchar(32);not null;comment:权限标识" json:"permission"`
	Status     int32          `gorm:"column:status;type:tinyint(2);not null;default:1;comment:菜单状态 1=正常 2=停用" json:"status"`
	CreateBy   string         `gorm:"column:create_by;type:varchar(128);not null;comment:创建人" json:"create_by"`
	UpdateBy   string         `gorm:"column:update_by;type:varchar(128);not null;comment:更新人" json:"update_by"`
	Remark     string         `gorm:"column:remark;type:varchar(191);not null;comment:备注" json:"remark"`
	CreatedAt  time.Time      `gorm:"column:created_at;type:datetime;comment:创建时间" json:"created_at"`
	UpdatedAt  time.Time      `gorm:"column:updated_at;type:datetime;comment:更新时间" json:"updated_at"`
	DeletedAt  gorm.DeletedAt `gorm:"column:deleted_at;type:datetime;comment:删除时间" json:"deleted_at"`
}

SysMenu mapped from table <sys_menus>

func (*SysMenu) TableName

func (*SysMenu) TableName() string

TableName SysMenu's table name

type SysMenuBtn

type SysMenuBtn struct {
	ID     int64  `gorm:"column:id;type:bigint(20);primaryKey;autoIncrement:true;comment:主键id" json:"id"`
	MenuID int64  `gorm:"column:menu_id;type:bigint(20);not null;comment:菜单ID" json:"menu_id"`
	Name   string `gorm:"column:name;type:varchar(191);not null;comment:按钮关键key" json:"name"`
	Desc   string `gorm:"column:desc;type:varchar(191);not null;comment:按钮描述" json:"desc"`
}

SysMenuBtn mapped from table <sys_menu_btns>

func (*SysMenuBtn) TableName

func (*SysMenuBtn) TableName() string

TableName SysMenuBtn's table name

type SysPost

type SysPost struct {
	ID        int64          `gorm:"column:id;type:bigint(20);primaryKey;autoIncrement:true;comment:主键id" json:"id"`
	PostName  string         `gorm:"column:post_name;type:varchar(128);not null;comment:岗位名称" json:"post_name"`
	PostCode  string         `gorm:"column:post_code;type:varchar(128);not null;comment:岗位代码" json:"post_code"`
	Sort      int32          `gorm:"column:sort;type:int(4);not null;comment:岗位排序" json:"sort"`
	Status    int32          `gorm:"column:status;type:tinyint(2);not null;default:1;comment:状态 1=正常 2=冻结" json:"status"`
	Remark    string         `gorm:"column:remark;type:varchar(255);not null;comment:描述" json:"remark"`
	CreateBy  string         `gorm:"column:create_by;type:varchar(64);not null;comment:创建人" json:"create_by"`
	UpdateBy  string         `gorm:"column:update_by;type:varchar(64);not null;comment:修改人" json:"update_by"`
	CreatedAt time.Time      `gorm:"column:created_at;type:datetime;comment:创建时间" json:"created_at"`
	UpdatedAt time.Time      `gorm:"column:updated_at;type:datetime;comment:更新时间" json:"updated_at"`
	DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;type:datetime;comment:删除时间" json:"deleted_at"`
}

SysPost mapped from table <sys_posts>

func (*SysPost) TableName

func (*SysPost) TableName() string

TableName SysPost's table name

type SysRole

type SysRole struct {
	ID            int64          `gorm:"column:id;type:bigint(20);primaryKey;autoIncrement:true;comment:主键id" json:"id"`
	ParentID      int64          `gorm:"column:parent_id;type:bigint(20);not null;comment:父角色ID" json:"parent_id"`
	RoleName      string         `gorm:"column:role_name;type:varchar(128);not null;comment:角色名称" json:"role_name"`
	Status        int32          `gorm:"column:status;type:tinyint(2);not null;default:1;comment:1=正常 2=异常" json:"status"`
	RoleKey       string         `gorm:"column:role_key;type:varchar(128);not null;comment:角色代码" json:"role_key"`
	DataScope     int32          `` /* 210-byte string literal not displayed */
	RoleSort      int32          `gorm:"column:role_sort;type:int(4);not null;comment:角色排序" json:"role_sort"`
	DefaultRouter string         `gorm:"column:default_router;type:varchar(191);not null;comment:默认菜单" json:"default_router"`
	Remark        string         `gorm:"column:remark;type:varchar(255);not null;comment:备注" json:"remark"`
	CreateBy      string         `gorm:"column:create_by;type:varchar(128);not null;comment:创建人" json:"create_by"`
	UpdateBy      string         `gorm:"column:update_by;type:varchar(128);not null;comment:更新人" json:"update_by"`
	CreatedAt     time.Time      `gorm:"column:created_at;type:datetime;comment:创建时间" json:"created_at"`
	UpdatedAt     time.Time      `gorm:"column:updated_at;type:datetime;comment:更新时间" json:"updated_at"`
	DeletedAt     gorm.DeletedAt `gorm:"column:deleted_at;type:datetime;comment:删除时间" json:"deleted_at"`
}

SysRole mapped from table <sys_roles>

func (*SysRole) TableName

func (*SysRole) TableName() string

TableName SysRole's table name

type SysRoleBtn

type SysRoleBtn struct {
	ID     int64 `gorm:"column:id;type:bigint(20);primaryKey;autoIncrement:true;comment:主键id" json:"id"`
	RoleID int64 `gorm:"column:role_id;type:bigint(20);not null;comment:角色ID" json:"role_id"`
	MenuID int64 `gorm:"column:menu_id;type:bigint(20);not null;comment:菜单ID" json:"menu_id"`
	BtnID  int64 `gorm:"column:btn_id;type:bigint(20);not null;comment:菜单按钮ID" json:"btn_id"`
}

SysRoleBtn mapped from table <sys_role_btns>

func (*SysRoleBtn) TableName

func (*SysRoleBtn) TableName() string

TableName SysRoleBtn's table name

type SysRoleDept

type SysRoleDept struct {
	ID     int64 `gorm:"column:id;type:bigint(20);primaryKey;autoIncrement:true;comment:主键id" json:"id"`
	RoleID int64 `gorm:"column:role_id;type:bigint(20);not null;comment:角色id" json:"role_id"`
	DeptID int64 `gorm:"column:dept_id;type:bigint(20);not null;comment:部门id" json:"dept_id"`
}

SysRoleDept mapped from table <sys_role_depts>

func (*SysRoleDept) TableName

func (*SysRoleDept) TableName() string

TableName SysRoleDept's table name

type SysRoleMenu

type SysRoleMenu struct {
	ID       int64  `gorm:"column:id;type:bigint(20);primaryKey;autoIncrement:true;comment:主键id" json:"id"`
	RoleID   int64  `gorm:"column:role_id;type:bigint(20);not null;comment:角色id" json:"role_id"`
	MenuID   int64  `gorm:"column:menu_id;type:bigint(20);not null;comment:菜单id" json:"menu_id"`
	RoleName string `gorm:"column:role_name;type:varchar(128);not null;comment:角色名称" json:"role_name"`
}

SysRoleMenu mapped from table <sys_role_menus>

func (*SysRoleMenu) TableName

func (*SysRoleMenu) TableName() string

TableName SysRoleMenu's table name

type SysUser

type SysUser struct {
	ID        int64          `gorm:"column:id;type:bigint(20);primaryKey;autoIncrement:true;comment:主键id" json:"id"`
	UUID      string         `gorm:"column:uuid;type:varchar(64);not null;comment:用户UUID" json:"uuid"`
	Username  string         `gorm:"column:username;type:varchar(64);not null;comment:用户名(登入)" json:"username"`
	NickName  string         `gorm:"column:nick_name;type:varchar(64);not null;comment:昵称" json:"nick_name"`
	Password  string         `gorm:"column:password;type:varchar(128);not null;comment:密码" json:"password"`
	Phone     string         `gorm:"column:phone;type:varchar(16);not null;comment:手机" json:"phone"`
	RoleID    int64          `gorm:"column:role_id;type:bigint(20);not null;comment:角色id" json:"role_id"`
	Salt      string         `gorm:"column:salt;type:varchar(255);not null;comment:盐" json:"salt"`
	Avatar    string         `gorm:"column:avatar;type:varchar(255);not null;comment:头像" json:"avatar"`
	Sex       int32          `gorm:"column:sex;type:tinyint(2);not null;comment:性别 0-未知 1-男 2-女" json:"sex"`
	Email     string         `gorm:"column:email;type:varchar(128);not null;comment:邮箱" json:"email"`
	DeptID    int64          `gorm:"column:dept_id;type:bigint(20);not null;comment:部门id" json:"dept_id"`
	PostID    int64          `gorm:"column:post_id;type:bigint(20);not null;comment:岗位id" json:"post_id"`
	Remark    string         `gorm:"column:remark;type:varchar(255);not null;comment:备注" json:"remark"`
	Status    int32          `gorm:"column:status;type:tinyint(2);not null;default:1;comment:1=正常 2=异常" json:"status"`
	RoleIds   string         `gorm:"column:role_ids;type:varchar(255);not null;comment:多角色" json:"role_ids"`
	PostIds   string         `gorm:"column:post_ids;type:varchar(255);not null;comment:多岗位" json:"post_ids"`
	CreateBy  string         `gorm:"column:create_by;type:varchar(128);not null;comment:创建人" json:"create_by"`
	UpdateBy  string         `gorm:"column:update_by;type:varchar(128);not null;comment:更新人" json:"update_by"`
	CreatedAt time.Time      `gorm:"column:created_at;type:datetime;comment:创建时间" json:"created_at"`
	UpdatedAt time.Time      `gorm:"column:updated_at;type:datetime;comment:更新时间" json:"updated_at"`
	DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;type:datetime;comment:删除时间" json:"deleted_at"`
	Secret    string         `gorm:"column:secret;type:varchar(255);not null;comment:google密钥" json:"secret"`
}

SysUser mapped from table <sys_users>

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