Documentation
¶
Index ¶
- Constants
- type CasbinRule
- type JwtBlacklist
- type LogJob
- type LogLogin
- type LogOper
- type SysAPI
- type SysDept
- type SysDictDatum
- type SysDictType
- type SysDiscovery
- type SysJob
- type SysLog
- type SysMenu
- type SysMenuBtn
- type SysPost
- type SysRole
- type SysRoleBtn
- type SysRoleDept
- type SysRoleMenu
- type SysUser
Constants ¶
const TableNameCasbinRule = "casbin_rule"
const TableNameJwtBlacklist = "jwt_blacklists"
const TableNameLogJob = "log_jobs"
const TableNameLogLogin = "log_logins"
const TableNameLogOper = "log_opers"
const TableNameSysAPI = "sys_apis"
const TableNameSysDept = "sys_depts"
const TableNameSysDictDatum = "sys_dict_data"
const TableNameSysDictType = "sys_dict_types"
const TableNameSysDiscovery = "sys_discovery"
const TableNameSysJob = "sys_jobs"
const TableNameSysLog = "sys_logs"
const TableNameSysMenu = "sys_menus"
const TableNameSysMenuBtn = "sys_menu_btns"
const TableNameSysPost = "sys_posts"
const TableNameSysRole = "sys_roles"
const TableNameSysRoleBtn = "sys_role_btns"
const TableNameSysRoleDept = "sys_role_depts"
const TableNameSysRoleMenu = "sys_role_menus"
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;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;primaryKey;autoIncrement:true" json:"id"`
Jwt string `gorm:"column:jwt;type:text;comment:jwt" json:"jwt"` // 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;primaryKey;autoIncrement:true;comment:主键id" json:"id"` // 主键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;not null;comment:任务id" json:"entry_id"` // 任务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;not null;default:1;comment:1=正常 2=异常" json:"status"` // 1=正常 2=异常
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>
type LogLogin ¶
type LogLogin struct {
ID int64 `gorm:"column:id;type:bigint;primaryKey;autoIncrement:true;comment:主键id" json:"id"` // 主键id
Username string `gorm:"column:username;type:varchar(128);not null;comment:用户名" json:"username"` // 用户名
Status int32 `gorm:"column:status;type:tinyint;not null;default:1;comment:1=正常 2=异常" json:"status"` // 1=正常 2=异常
Ipaddr string `gorm:"column:ipaddr;type:varchar(255);not null;comment:ip地址" json:"ipaddr"` // ip地址
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>
type LogOper ¶
type LogOper struct {
ID int64 `gorm:"column:id;type:bigint;primaryKey;autoIncrement:true;comment:主键id" json:"id"` // 主键id
Title string `gorm:"column:title;type:varchar(128);not null;comment:操作的模块" json:"title"` // 操作的模块
BusinessType int32 `gorm:"column:business_type;type:tinyint;not null;comment:0其它 1新增 2修改 3删除" json:"business_type"` // 0其它 1新增 2修改 3删除
URL string `gorm:"column:url;type:varchar(255);not null;comment:操作url" json:"url"` // 操作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;not null;comment:用户id" json:"user_id"` // 用户id
IP string `gorm:"column:ip;type:varchar(16);not null;comment:操作IP" json:"ip"` // 操作IP
Agent string `gorm:"column:agent;type:varchar(16);not null;comment:代理" json:"agent"` // 代理
Latency int32 `gorm:"column:latency;type:int;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;not null;default:1;comment:1=正常 2=异常" json:"status"` // 1=正常 2=异常
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>
type SysAPI ¶
type SysAPI struct {
ID int64 `gorm:"column:id;type:bigint;primaryKey;autoIncrement:true;comment:主键id" json:"id"` // 主键id
Path string `gorm:"column:path;type:varchar(191);not null;comment:api路径" json:"path"` // api路径
URI string `gorm:"column:uri;type:varchar(100);comment:资源标识符" json:"uri"` // 资源标识符
Description string `gorm:"column:description;type:varchar(191);not null;comment:api中文描述" json:"description"` // api中文描述
APIGroup string `gorm:"column:api_group;type:varchar(191);not null;comment:api组" json:"api_group"` // api组
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>
type SysDept ¶
type SysDept struct {
ID int64 `gorm:"column:id;type:bigint;primaryKey;autoIncrement:true;comment:主键id" json:"id"` // 主键id
ParentID int64 `gorm:"column:parent_id;type:bigint;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;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;not null;default:1;comment:状态 1=正常 2-冻结" json:"status"` // 状态 1=正常 2-冻结
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>
type SysDictDatum ¶
type SysDictDatum struct {
DictCode int64 `gorm:"column:dict_code;type:bigint;primaryKey;autoIncrement:true" json:"dict_code"`
DictSort int32 `gorm:"column:dict_sort;type:int;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;comment:状态(0正常 1停用)" json:"status"` // 状态(0正常 1停用)
CSSClass string `gorm:"column:css_class;type:varchar(128);comment:CssClass" json:"css_class"` // CssClass
ListClass string `gorm:"column:list_class;type:varchar(128);comment:ListClass" json:"list_class"` // ListClass
IsDefault string `gorm:"column:is_default;type:varchar(8);comment:IsDefault" json:"is_default"` // IsDefault
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"` // 备注
CreatedAt time.Time `gorm:"column:created_at;type:datetime" json:"created_at"`
UpdatedAt time.Time `gorm:"column:updated_at;type:datetime" json:"updated_at"`
DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;type:datetime" json:"deleted_at"`
}
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;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;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"` // 备注
CreatedAt time.Time `gorm:"column:created_at;type:datetime" json:"created_at"`
UpdatedAt time.Time `gorm:"column:updated_at;type:datetime" json:"updated_at"`
DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;type:datetime" json:"deleted_at"`
}
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;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;default:1;comment:排序" json:"rank"`
Link string `gorm:"column:link;type:varchar(255);comment:发现页链接" json:"link"`
Status int32 `gorm:"column:status;type:int;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;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;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;comment:执行策略" json:"misfire_policy"`
Concurrent int32 `gorm:"column:concurrent;type:tinyint;default:2;comment:是否并发 1=是 2=否" json:"concurrent"`
Status int32 `gorm:"column:status;type:tinyint;default:1;comment:1=正常 2=异常" json:"status"`
EntryID int32 `gorm:"column:entry_id;type:int;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>
type SysLog ¶
type SysLog struct {
ID int64 `gorm:"column:id;type:bigint;primaryKey;autoIncrement:true;comment:主键id" json:"id"` // 主键id
Title string `gorm:"column:title;type:varchar(128);not null;comment:操作的模块" json:"title"` // 操作的模块
BusinessType int32 `gorm:"column:business_type;type:tinyint;not null;comment:0其它 1新增 2修改 3删除" json:"business_type"` // 0其它 1新增 2修改 3删除
URL string `gorm:"column:url;type:varchar(128);comment:操作url" json:"url"` // 操作url
Operation string `gorm:"column:operation;type:varchar(200);comment:操作路径" json:"operation"` // 操作路径
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;not null;comment:用户id" json:"user_id"` // 用户id
IP string `gorm:"column:ip;type:varchar(16);not null;comment:操作IP" json:"ip"` // 操作IP
Latency int32 `gorm:"column:latency;type:int;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;not null;default:1;comment:1=正常 2=异常" json:"status"` // 1=正常 2=异常
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"` // 创建时间
}
SysLog mapped from table <sys_logs>
type SysMenu ¶
type SysMenu struct {
ID int64 `gorm:"column:id;type:bigint;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;not null;comment:父级菜单id" json:"parent_id"` // 父级菜单id
Sort int32 `gorm:"column:sort;type:int;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;not null;default:2;comment:是否为内嵌 1=是 2=否" json:"is_iframe"` // 是否为内嵌 1=是 2=否
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"` // 菜单类型(1目录 2菜单 3按钮)
Hidden int32 `gorm:"column:hidden;type:tinyint;not null;default:1;comment:显示状态(0显示 1隐藏)" json:"hidden"` // 显示状态(0显示 1隐藏)
KeepAlive int32 `gorm:"column:keep_alive;type:tinyint;not null;default:1;comment:是否缓存组件状态(1是 2否)" json:"keep_alive"` // 是否缓存组件状态(1是 2否)
IsAffix int32 `gorm:"column:is_affix;type:tinyint;not null;default:1;comment:是否固定在 tagsView 栏上(1是 2否)" json:"is_affix"` // 是否固定在 tagsView 栏上(1是 2否)
Permission string `gorm:"column:permission;type:varchar(32);not null;comment:权限标识" json:"permission"` // 权限标识
Status int32 `gorm:"column:status;type:tinyint;not null;default:1;comment:菜单状态 1=正常 2=停用" json:"status"` // 菜单状态 1=正常 2=停用
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>
type SysMenuBtn ¶
type SysMenuBtn struct {
ID int64 `gorm:"column:id;type:bigint;primaryKey;autoIncrement:true;comment:主键id" json:"id"` // 主键id
MenuID int64 `gorm:"column:menu_id;type:bigint;not null;comment:菜单ID" json:"menu_id"` // 菜单ID
Name string `gorm:"column:name;type:varchar(191);not null;comment:按钮关键key" json:"name"` // 按钮关键key
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;primaryKey;autoIncrement:true;comment:主键id" json:"id"` // 主键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;not null;comment:岗位排序" json:"sort"` // 岗位排序
Status int32 `gorm:"column:status;type:tinyint;not null;default:1;comment:状态 1=正常 2=冻结" json:"status"` // 状态 1=正常 2=冻结
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>
type SysRole ¶
type SysRole struct {
ID int64 `gorm:"column:id;type:bigint;primaryKey;autoIncrement:true;comment:主键id" json:"id"` // 主键id
ParentID int64 `gorm:"column:parent_id;type:bigint;not null;comment:父角色ID" json:"parent_id"` // 父角色ID
RoleName string `gorm:"column:role_name;type:varchar(128);not null;comment:角色名称" json:"role_name"` // 角色名称
Status int32 `gorm:"column:status;type:tinyint;not null;default:1;comment:1=正常 2=异常" json:"status"` // 1=正常 2=异常
RoleKey string `gorm:"column:role_key;type:varchar(128);not null;comment:角色代码" json:"role_key"` // 角色代码
DataScope int32 `` // 数据范围(1:全部数据权限 2:自定数据权限 3:本部门数据权限 4:本部门及以下数据权限)
/* 207-byte string literal not displayed */
RoleSort int32 `gorm:"column:role_sort;type:int;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>
type SysRoleBtn ¶
type SysRoleBtn struct {
ID int64 `gorm:"column:id;type:bigint;primaryKey;autoIncrement:true;comment:主键id" json:"id"` // 主键id
RoleID int64 `gorm:"column:role_id;type:bigint;not null;comment:角色ID" json:"role_id"` // 角色ID
MenuID int64 `gorm:"column:menu_id;type:bigint;not null;comment:菜单ID" json:"menu_id"` // 菜单ID
BtnID int64 `gorm:"column:btn_id;type:bigint;not null;comment:菜单按钮ID" json:"btn_id"` // 菜单按钮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;primaryKey;autoIncrement:true;comment:主键id" json:"id"` // 主键id
RoleID int64 `gorm:"column:role_id;type:bigint;not null;comment:角色id" json:"role_id"` // 角色id
DeptID int64 `gorm:"column:dept_id;type:bigint;not null;comment:部门id" json:"dept_id"` // 部门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;primaryKey;autoIncrement:true;comment:主键id" json:"id"` // 主键id
RoleID int64 `gorm:"column:role_id;type:bigint;not null;comment:角色id" json:"role_id"` // 角色id
MenuID int64 `gorm:"column:menu_id;type:bigint;not null;comment:菜单id" json:"menu_id"` // 菜单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;primaryKey;autoIncrement:true;comment:主键id" json:"id"` // 主键id
UUID string `gorm:"column:uuid;type:varchar(64);not null;comment:用户UUID" json:"uuid"` // 用户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;not null;comment:角色id" json:"role_id"` // 角色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;not null;comment:性别 0-未知 1-男 2-女" json:"sex"` // 性别 0-未知 1-男 2-女
Email string `gorm:"column:email;type:varchar(128);not null;comment:邮箱" json:"email"` // 邮箱
DeptID int64 `gorm:"column:dept_id;type:bigint;not null;comment:部门id" json:"dept_id"` // 部门id
PostID int64 `gorm:"column:post_id;type:bigint;not null;comment:岗位id" json:"post_id"` // 岗位id
Remark string `gorm:"column:remark;type:varchar(255);not null;comment:备注" json:"remark"` // 备注
Status int32 `gorm:"column:status;type:tinyint;not null;default:1;comment:1=正常 2=异常" json:"status"` // 1=正常 2=异常
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"` // google密钥
}
SysUser mapped from table <sys_users>
Source Files
¶
- casbin_rule.gen.go
- jwt_blacklists.gen.go
- log_jobs.gen.go
- log_logins.gen.go
- log_opers.gen.go
- sys_apis.gen.go
- sys_depts.gen.go
- sys_dict_data.gen.go
- sys_dict_types.gen.go
- sys_discovery.gen.go
- sys_jobs.gen.go
- sys_logs.gen.go
- sys_menu_btns.gen.go
- sys_menus.gen.go
- sys_posts.gen.go
- sys_role_btns.gen.go
- sys_role_depts.gen.go
- sys_role_menus.gen.go
- sys_roles.gen.go
- sys_users.gen.go