This commit is contained in:
liang
2021-10-17 20:04:40 +08:00
parent 63e5bd8930
commit 7dfb9d8797
212 changed files with 59018 additions and 1 deletions
@@ -0,0 +1,33 @@
// ==========================================================================
// This is auto-generated by gf cli tool. DO NOT EDIT THIS FILE MANUALLY.
// ==========================================================================
package internal
import (
"github.com/gogf/gf/os/gtime"
)
// SysAuthRule is the golang structure for table sys_auth_rule.
type SysAuthRule struct {
Id uint `orm:"id,primary" json:"id"` //
Pid uint `orm:"pid" json:"pid"` // 父ID
Name string `orm:"name,unique" json:"name"` // 规则名称
Title string `orm:"title" json:"title"` // 规则名称
Icon string `orm:"icon" json:"icon"` // 图标
Condition string `orm:"condition" json:"condition"` // 条件
Remark string `orm:"remark" json:"remark"` // 备注
MenuType uint `orm:"menu_type" json:"menuType"` // 类型 0目录 1菜单 2按钮
Weigh int `orm:"weigh" json:"weigh"` // 权重
Status uint `orm:"status" json:"status"` // 状态
AlwaysShow uint `orm:"always_show" json:"alwaysShow"` // 显示状态
Path string `orm:"path" json:"path"` // 路由地址
JumpPath string `orm:"jump_path" json:"jumpPath"` // 跳转路由
Component string `orm:"component" json:"component"` // 组件路径
IsFrame uint `orm:"is_frame" json:"isFrame"` // 是否外链 1是 0否
ModuleType string `orm:"module_type" json:"moduleType"` // 所属模块
ModelId uint `orm:"model_id" json:"modelId"` // 模型ID
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` // 创建日期
UpdatedAt *gtime.Time `orm:"updated_at" json:"updatedAt"` // 修改日期
DeletedAt *gtime.Time `orm:"deleted_at" json:"deletedAt"` // 删除日期
}
@@ -0,0 +1,28 @@
// ==========================================================================
// This is auto-generated by gf cli tool. DO NOT EDIT THIS FILE MANUALLY.
// ==========================================================================
package internal
import (
"github.com/gogf/gf/os/gtime"
)
// SysDictData is the golang structure for table sys_dict_data.
type SysDictData struct {
DictCode int64 `orm:"dict_code,primary" json:"dictCode"` // 字典编码
DictSort int `orm:"dict_sort" json:"dictSort"` // 字典排序
DictLabel string `orm:"dict_label" json:"dictLabel"` // 字典标签
DictValue string `orm:"dict_value" json:"dictValue"` // 字典键值
DictType string `orm:"dict_type" json:"dictType"` // 字典类型
CssClass string `orm:"css_class" json:"cssClass"` // 样式属性(其他样式扩展)
ListClass string `orm:"list_class" json:"listClass"` // 表格回显样式
IsDefault int `orm:"is_default" json:"isDefault"` // 是否默认(1是 0否)
Status int `orm:"status" json:"status"` // 状态(0正常 1停用)
CreateBy uint64 `orm:"create_by" json:"createBy"` // 创建者
UpdateBy uint64 `orm:"update_by" json:"updateBy"` // 更新者
Remark string `orm:"remark" json:"remark"` // 备注
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` // 创建时间
UpdatedAt *gtime.Time `orm:"updated_at" json:"updatedAt"` // 修改时间
DeletedAt *gtime.Time `orm:"deleted_at" json:"deletedAt"` // 删除时间
}
@@ -0,0 +1,23 @@
// ==========================================================================
// This is auto-generated by gf cli tool. DO NOT EDIT THIS FILE MANUALLY.
// ==========================================================================
package internal
import (
"github.com/gogf/gf/os/gtime"
)
// SysDictType is the golang structure for table sys_dict_type.
type SysDictType struct {
DictId uint64 `orm:"dict_id,primary" json:"dictId"` // 字典主键
DictName string `orm:"dict_name" json:"dictName"` // 字典名称
DictType string `orm:"dict_type,unique" json:"dictType"` // 字典类型
Status uint `orm:"status" json:"status"` // 状态(0正常 1停用)
CreateBy uint `orm:"create_by" json:"createBy"` // 创建者
UpdateBy uint `orm:"update_by" json:"updateBy"` // 更新者
Remark string `orm:"remark" json:"remark"` // 备注
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` // 创建日期
UpdatedAt *gtime.Time `orm:"updated_at" json:"updatedAt"` // 修改日期
DeletedAt *gtime.Time `orm:"deleted_at" json:"deletedAt"` // 删除日期
}
@@ -0,0 +1,23 @@
// ==========================================================================
// This is auto-generated by gf cli tool. DO NOT EDIT THIS FILE MANUALLY.
// ==========================================================================
package internal
import (
"github.com/gogf/gf/os/gtime"
)
// SysLoginLog is the golang structure for table sys_login_log.
type SysLoginLog struct {
InfoId int64 `orm:"info_id,primary" json:"infoId"` // 访问ID
LoginName string `orm:"login_name" json:"loginName"` // 登录账号
Ipaddr string `orm:"ipaddr" json:"ipaddr"` // 登录IP地址
LoginLocation string `orm:"login_location" json:"loginLocation"` // 登录地点
Browser string `orm:"browser" json:"browser"` // 浏览器类型
Os string `orm:"os" json:"os"` // 操作系统
Status int `orm:"status" json:"status"` // 登录状态(0成功 1失败)
Msg string `orm:"msg" json:"msg"` // 提示消息
LoginTime *gtime.Time `orm:"login_time" json:"loginTime"` // 登录时间
Module string `orm:"module" json:"module"` // 登录模块
}
@@ -0,0 +1,26 @@
// ==========================================================================
// Code generated by GoFrame CLI tool. DO NOT EDIT.
// ==========================================================================
package internal
// SysModelInfo is the golang structure for table sys_model_info.
type SysModelInfo struct {
ModelId uint `orm:"model_id,primary" json:"modelId"` // 模型ID
ModelCategoryId uint `orm:"model_category_id" json:"modelCategoryId"` // 模板分类id
ModelName string `orm:"model_name,unique" json:"modelName"` // 模型标识
ModelTitle string `orm:"model_title" json:"modelTitle"` // 模型名称
ModelPk string `orm:"model_pk" json:"modelPk"` // 主键字段
ModelOrder string `orm:"model_order" json:"modelOrder"` // 默认排序字段
ModelSort string `orm:"model_sort" json:"modelSort"` // 表单字段排序
ModelList string `orm:"model_list" json:"modelList"` // 列表显示字段,为空显示全部
ModelEdit string `orm:"model_edit" json:"modelEdit"` // 可编辑字段,为空则除主键外均可以编辑
ModelIndexes string `orm:"model_indexes" json:"modelIndexes"` // 索引字段
SearchList string `orm:"search_list" json:"searchList"` // 高级搜索的字段
CreateTime uint64 `orm:"create_time" json:"createTime"` // 创建时间
UpdateTime uint64 `orm:"update_time" json:"updateTime"` // 更新时间
ModelStatus uint `orm:"model_status" json:"modelStatus"` // 状态
ModelEngine string `orm:"model_engine" json:"modelEngine"` // 数据库引擎
CreateBy uint64 `orm:"create_by" json:"createBy"` // 创建人
UpdateBy uint64 `orm:"update_by" json:"updateBy"` // 修改人
}
+15
View File
@@ -0,0 +1,15 @@
// ==========================================================================
// Code generated by GoFrame CLI tool. DO NOT EDIT.
// ==========================================================================
package internal
// SysRole is the golang structure for table sys_role.
type SysRole struct {
Id uint `orm:"id,primary" json:"id"` //
Status uint `orm:"status" json:"status"` // 状态;0:禁用;1:正常
ListOrder float64 `orm:"list_order" json:"listOrder"` // 排序
Name string `orm:"name" json:"name"` // 角色名称
Remark string `orm:"remark" json:"remark"` // 备注
DataScope uint `orm:"data_scope" json:"dataScope"` // 数据范围(1:全部数据权限 2:自定数据权限 3:本部门数据权限 4:本部门及以下数据权限)
}
@@ -0,0 +1,11 @@
// ==========================================================================
// Code generated by GoFrame CLI tool. DO NOT EDIT.
// ==========================================================================
package internal
// SysRoleDept is the golang structure for table sys_role_dept.
type SysRoleDept struct {
RoleId int64 `orm:"role_id,primary" json:"roleId"` // 角色ID
DeptId int64 `orm:"dept_id,primary" json:"deptId"` // 部门ID
}
+35
View File
@@ -0,0 +1,35 @@
// ==========================================================================
// This is auto-generated by gf cli tool. DO NOT EDIT THIS FILE MANUALLY.
// ==========================================================================
package internal
import (
"github.com/gogf/gf/os/gtime"
)
// SysUser is the golang structure for table sys_user.
type SysUser struct {
Id uint64 `orm:"id,primary" json:"id"` //
UserName string `orm:"user_name,unique" json:"userName"` // 用户名
Mobile string `orm:"mobile,unique" json:"mobile"` // 中国手机不带国家代码,国际手机号格式为:国家代码-手机号
UserNickname string `orm:"user_nickname" json:"userNickname"` // 用户昵称
Birthday int `orm:"birthday" json:"birthday"` // 生日
UserPassword string `orm:"user_password" json:"userPassword"` // 登录密码;cmf_password加密
UserSalt string `orm:"user_salt" json:"userSalt"` // 加密盐
UserStatus uint `orm:"user_status" json:"userStatus"` // 用户状态;0:禁用,1:正常,2:未验证
UserEmail string `orm:"user_email" json:"userEmail"` // 用户登录邮箱
Sex int `orm:"sex" json:"sex"` // 性别;0:保密,1:男,2:女
Avatar string `orm:"avatar" json:"avatar"` // 用户头像
DeptId uint64 `orm:"dept_id" json:"deptId"` // 部门id
Remark string `orm:"remark" json:"remark"` // 备注
IsAdmin int `orm:"is_admin" json:"isAdmin"` // 是否后台管理员 1 是 0 否
Address string `orm:"address" json:"address"` // 联系地址
Describe string `orm:"describe" json:"describe"` // 描述信息
PhoneNum string `orm:"phone_num" json:"phoneNum"` // 联系电话
LastLoginIp string `orm:"last_login_ip" json:"lastLoginIp"` // 最后登录ip
LastLoginTime *gtime.Time `orm:"last_login_time" json:"lastLoginTime"` // 最后登录时间
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` // 创建时间
UpdatedAt *gtime.Time `orm:"updated_at" json:"updatedAt"` // 更新时间
DeletedAt *gtime.Time `orm:"deleted_at" json:"deletedAt"` // 删除时间
}
@@ -0,0 +1,21 @@
// ==========================================================================
// This is auto-generated by gf cli tool. DO NOT EDIT THIS FILE MANUALLY.
// ==========================================================================
package internal
import (
"github.com/gogf/gf/os/gtime"
)
// SysUserOnline is the golang structure for table sys_user_online.
type SysUserOnline struct {
Id uint64 `orm:"id,primary" json:"id"` //
Uuid string `orm:"uuid" json:"uuid"` // 用户标识
Token string `orm:"token,unique" json:"token"` // 用户token
CreateTime *gtime.Time `orm:"create_time" json:"createTime"` // 登录时间
UserName string `orm:"user_name" json:"userName"` // 用户名
Ip string `orm:"ip" json:"ip"` // 登录ip
Explorer string `orm:"explorer" json:"explorer"` // 浏览器
Os string `orm:"os" json:"os"` // 操作系统
}
@@ -0,0 +1,11 @@
// ==========================================================================
// Code generated by GoFrame CLI tool. DO NOT EDIT.
// ==========================================================================
package internal
// SysUserPost is the golang structure for table sys_user_post.
type SysUserPost struct {
UserId int64 `orm:"user_id,primary" json:"userId"` // 用户ID
PostId int64 `orm:"post_id,primary" json:"postId"` // 岗位ID
}