1
This commit is contained in:
0
internal/app/system/model/entity/.gitkeep
Normal file
0
internal/app/system/model/entity/.gitkeep
Normal file
16
internal/app/system/model/entity/area_dict.go
Normal file
16
internal/app/system/model/entity/area_dict.go
Normal file
@@ -0,0 +1,16 @@
|
||||
// =================================================================================
|
||||
// Code generated by GoFrame CLI tool. DO NOT EDIT. Created at 2022-03-02 16:48:23
|
||||
// =================================================================================
|
||||
|
||||
package entity
|
||||
|
||||
// AreaDict is the golang structure for table tenant.
|
||||
type AreaDict struct {
|
||||
Id int `json:"id" description:""`
|
||||
CityName string `json:"cityName" description:"城市名称"`
|
||||
ParentId int `json:"parentId" description:"父级id"`
|
||||
ShortName string `json:"shortName" description:"城市缩写名称"`
|
||||
Depth int `json:"depth" description:"城市层级"`
|
||||
MergerName string `json:"mergerName" description:"城市组合名称"`
|
||||
Status int `json:"status" description:"状态"`
|
||||
}
|
||||
29
internal/app/system/model/entity/module_tenant.go
Normal file
29
internal/app/system/model/entity/module_tenant.go
Normal file
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
* @desc:模块租户关系实体
|
||||
* @company:云南奇讯科技有限公司
|
||||
* @Author: system
|
||||
* @Date: 2026/1/6
|
||||
*/
|
||||
|
||||
package entity
|
||||
|
||||
import (
|
||||
"github.com/gogf/gf/v2/os/gtime"
|
||||
"github.com/tiger1103/gfast/v3/internal/app/system/consts"
|
||||
)
|
||||
|
||||
// ModuleTenant is the golang structure for table module_tenant.
|
||||
type ModuleTenant struct {
|
||||
Id uint64 `json:"id" description:""`
|
||||
CreateBy uint64 `json:"createBy" description:"创建者"`
|
||||
UpdateBy uint64 `json:"updateBy" description:"更新者"`
|
||||
CreatedAt *gtime.Time `json:"createdAt" description:"创建时间"`
|
||||
UpdatedAt *gtime.Time `json:"updatedAt" description:"更新时间"`
|
||||
ModuleKey string `json:"moduleKey" description:"模块Key"`
|
||||
TenantId uint64 `json:"tenantId" description:"租户ID"`
|
||||
ExpireAt *gtime.Time `json:"expireAt" description:"到期时间"`
|
||||
AssetId string `json:"assetId" description:"资产ID"`
|
||||
AssetSkuId string `json:"assetSkuId" description:"资产SKU ID"`
|
||||
TenantModuleType string `json:"tenantModuleType" description:"租户模块类型"`
|
||||
CertificationStatus consts.CertificationStatus `json:"certificationStatus" description:"认证状态"`
|
||||
}
|
||||
35
internal/app/system/model/entity/sys_auth_rule.go
Normal file
35
internal/app/system/model/entity/sys_auth_rule.go
Normal file
@@ -0,0 +1,35 @@
|
||||
// =================================================================================
|
||||
// Code generated by GoFrame CLI tool. DO NOT EDIT.
|
||||
// =================================================================================
|
||||
|
||||
package entity
|
||||
|
||||
import (
|
||||
"github.com/gogf/gf/v2/os/gtime"
|
||||
)
|
||||
|
||||
// SysAuthRule is the golang structure for table sys_auth_rule.
|
||||
type SysAuthRule struct {
|
||||
Id uint `json:"id" description:""`
|
||||
Pid uint `json:"pid" description:"父ID"`
|
||||
Name string `json:"name" description:"规则名称"`
|
||||
Title string `json:"title" description:"规则名称"`
|
||||
Icon string `json:"icon" description:"图标"`
|
||||
Condition string `json:"condition" description:"条件"`
|
||||
Remark string `json:"remark" description:"备注"`
|
||||
MenuType uint `json:"menuType" description:"类型 0目录 1菜单 2按钮"`
|
||||
Weigh int `json:"weigh" description:"权重"`
|
||||
IsHide uint `json:"isHide" description:"显示状态"`
|
||||
Path string `json:"path" description:"路由地址"`
|
||||
Component string `json:"component" description:"组件路径"`
|
||||
IsLink uint `json:"isLink" description:"是否外链 1是 0否"`
|
||||
ModuleType string `json:"moduleType" description:"所属模块"`
|
||||
ModelId uint `json:"modelId" description:"模型ID"`
|
||||
IsIframe uint `json:"isIframe" description:"是否内嵌iframe"`
|
||||
IsCached uint `json:"isCached" description:"是否缓存"`
|
||||
Redirect string `json:"redirect" description:"路由重定向地址"`
|
||||
IsAffix uint `json:"isAffix" description:"是否固定"`
|
||||
LinkUrl string `json:"linkUrl" description:"链接地址"`
|
||||
CreatedAt *gtime.Time `json:"createdAt" description:"创建日期"`
|
||||
UpdatedAt *gtime.Time `json:"updatedAt" description:"修改日期"`
|
||||
}
|
||||
28
internal/app/system/model/entity/sys_dept.go
Normal file
28
internal/app/system/model/entity/sys_dept.go
Normal file
@@ -0,0 +1,28 @@
|
||||
// =================================================================================
|
||||
// Code generated by GoFrame CLI tool. DO NOT EDIT.
|
||||
// =================================================================================
|
||||
|
||||
package entity
|
||||
|
||||
import (
|
||||
"github.com/gogf/gf/v2/os/gtime"
|
||||
)
|
||||
|
||||
// SysDept is the golang structure for table sys_dept.
|
||||
type SysDept struct {
|
||||
DeptId uint64 `json:"deptId" description:"部门id"`
|
||||
ParentId uint64 `json:"parentId" description:"父部门id"`
|
||||
Ancestors string `json:"ancestors" description:"祖级列表"`
|
||||
DeptName string `json:"deptName" description:"部门名称"`
|
||||
OrderNum int `json:"orderNum" description:"显示顺序"`
|
||||
Leader string `json:"leader" description:"负责人"`
|
||||
Phone string `json:"phone" description:"联系电话"`
|
||||
Email string `json:"email" description:"邮箱"`
|
||||
Status uint `json:"status" description:"部门状态(0正常 1停用)"`
|
||||
CreatedBy uint64 `json:"createdBy" description:"创建人"`
|
||||
UpdatedBy int64 `json:"updatedBy" description:"修改人"`
|
||||
CreatedAt *gtime.Time `json:"createdAt" description:"创建时间"`
|
||||
UpdatedAt *gtime.Time `json:"updatedAt" description:"修改时间"`
|
||||
DeletedAt *gtime.Time `json:"deletedAt" description:"删除时间"`
|
||||
TenantId uint64 `json:"tenantId" description:"租户id"`
|
||||
}
|
||||
23
internal/app/system/model/entity/sys_login_log.go
Normal file
23
internal/app/system/model/entity/sys_login_log.go
Normal file
@@ -0,0 +1,23 @@
|
||||
// =================================================================================
|
||||
// Code generated by GoFrame CLI tool. DO NOT EDIT. Created at 2022-03-08 11:31:48
|
||||
// =================================================================================
|
||||
|
||||
package entity
|
||||
|
||||
import (
|
||||
"github.com/gogf/gf/v2/os/gtime"
|
||||
)
|
||||
|
||||
// SysLoginLog is the golang structure for table sys_login_log.
|
||||
type SysLoginLog struct {
|
||||
InfoId int64 `json:"infoId" description:"访问ID"`
|
||||
LoginName string `json:"loginName" description:"登录账号"`
|
||||
Ipaddr string `json:"ipaddr" description:"登录IP地址"`
|
||||
LoginLocation string `json:"loginLocation" description:"登录地点"`
|
||||
Browser string `json:"browser" description:"浏览器类型"`
|
||||
Os string `json:"os" description:"操作系统"`
|
||||
Status int `json:"status" description:"登录状态(0成功 1失败)"`
|
||||
Msg string `json:"msg" description:"提示消息"`
|
||||
LoginTime *gtime.Time `json:"loginTime" description:"登录时间"`
|
||||
Module string `json:"module" description:"登录模块"`
|
||||
}
|
||||
27
internal/app/system/model/entity/sys_oper_log.go
Normal file
27
internal/app/system/model/entity/sys_oper_log.go
Normal file
@@ -0,0 +1,27 @@
|
||||
// =================================================================================
|
||||
// Code generated by GoFrame CLI tool. DO NOT EDIT.
|
||||
// =================================================================================
|
||||
|
||||
package entity
|
||||
|
||||
import (
|
||||
"github.com/gogf/gf/v2/os/gtime"
|
||||
)
|
||||
|
||||
// SysOperLog is the golang structure for table sys_oper_log.
|
||||
type SysOperLog struct {
|
||||
OperId uint64 `json:"operId" description:"日志主键"`
|
||||
Title string `json:"title" description:"模块标题"`
|
||||
BusinessType int `json:"businessType" description:"业务类型(0其它 1新增 2修改 3删除)"`
|
||||
Method string `json:"method" description:"方法名称"`
|
||||
RequestMethod string `json:"requestMethod" description:"请求方式"`
|
||||
OperatorType int `json:"operatorType" description:"操作类别(0其它 1后台用户 2手机端用户)"`
|
||||
OperName string `json:"operName" description:"操作人员"`
|
||||
DeptName string `json:"deptName" description:"部门名称"`
|
||||
OperUrl string `json:"operUrl" description:"请求URL"`
|
||||
OperIp string `json:"operIp" description:"主机地址"`
|
||||
OperLocation string `json:"operLocation" description:"操作地点"`
|
||||
OperParam string `json:"operParam" description:"请求参数"`
|
||||
ErrorMsg string `json:"errorMsg" description:"错误消息"`
|
||||
OperTime *gtime.Time `json:"operTime" description:"操作时间"`
|
||||
}
|
||||
24
internal/app/system/model/entity/sys_post.go
Normal file
24
internal/app/system/model/entity/sys_post.go
Normal file
@@ -0,0 +1,24 @@
|
||||
// =================================================================================
|
||||
// Code generated by GoFrame CLI tool. DO NOT EDIT. Created at 2022-04-07 23:26:21
|
||||
// =================================================================================
|
||||
|
||||
package entity
|
||||
|
||||
import (
|
||||
"github.com/gogf/gf/v2/os/gtime"
|
||||
)
|
||||
|
||||
// SysPost is the golang structure for table sys_post.
|
||||
type SysPost struct {
|
||||
PostId uint64 `json:"postId" description:"岗位ID"`
|
||||
PostCode string `json:"postCode" description:"岗位编码"`
|
||||
PostName string `json:"postName" description:"岗位名称"`
|
||||
PostSort int `json:"postSort" description:"显示顺序"`
|
||||
Status uint `json:"status" description:"状态(0正常 1停用)"`
|
||||
Remark string `json:"remark" description:"备注"`
|
||||
CreatedBy uint64 `json:"createdBy" description:"创建人"`
|
||||
UpdatedBy uint64 `json:"updatedBy" description:"修改人"`
|
||||
CreatedAt *gtime.Time `json:"createdAt" description:"创建时间"`
|
||||
UpdatedAt *gtime.Time `json:"updatedAt" description:"修改时间"`
|
||||
DeletedAt *gtime.Time `json:"deletedAt" description:"删除时间"`
|
||||
}
|
||||
22
internal/app/system/model/entity/sys_role.go
Normal file
22
internal/app/system/model/entity/sys_role.go
Normal file
@@ -0,0 +1,22 @@
|
||||
// =================================================================================
|
||||
// Code generated by GoFrame CLI tool. DO NOT EDIT.
|
||||
// =================================================================================
|
||||
|
||||
package entity
|
||||
|
||||
import (
|
||||
"github.com/gogf/gf/v2/os/gtime"
|
||||
)
|
||||
|
||||
// SysRole is the golang structure for table sys_role.
|
||||
type SysRole struct {
|
||||
Id uint `json:"id" description:""`
|
||||
Status uint `json:"status" description:"状态;0:禁用;1:正常"`
|
||||
ListOrder uint `json:"listOrder" description:"排序"`
|
||||
Name string `json:"name" description:"角色名称"`
|
||||
Remark string `json:"remark" description:"备注"`
|
||||
DataScope uint `json:"dataScope" description:"数据范围(1:全部数据权限 2:自定数据权限 3:本部门数据权限 4:本部门及以下数据权限)"`
|
||||
CreatedAt *gtime.Time `json:"createdAt" description:"创建时间"`
|
||||
UpdatedAt *gtime.Time `json:"updatedAt" description:"更新时间"`
|
||||
TenantId uint64 `json:"tenantId" description:"租户id"`
|
||||
}
|
||||
11
internal/app/system/model/entity/sys_role_dept.go
Normal file
11
internal/app/system/model/entity/sys_role_dept.go
Normal file
@@ -0,0 +1,11 @@
|
||||
// =================================================================================
|
||||
// Code generated by GoFrame CLI tool. DO NOT EDIT.
|
||||
// =================================================================================
|
||||
|
||||
package entity
|
||||
|
||||
// SysRoleDept is the golang structure for table sys_role_dept.
|
||||
type SysRoleDept struct {
|
||||
RoleId int64 `json:"roleId" description:"角色ID"`
|
||||
DeptId int64 `json:"deptId" description:"部门ID"`
|
||||
}
|
||||
35
internal/app/system/model/entity/sys_user.go
Normal file
35
internal/app/system/model/entity/sys_user.go
Normal file
@@ -0,0 +1,35 @@
|
||||
// =================================================================================
|
||||
// Code generated by GoFrame CLI tool. DO NOT EDIT. Created at 2022-03-02 16:48:23
|
||||
// =================================================================================
|
||||
|
||||
package entity
|
||||
|
||||
import (
|
||||
"github.com/gogf/gf/v2/os/gtime"
|
||||
)
|
||||
|
||||
// SysUser is the golang structure for table sys_user.
|
||||
type SysUser struct {
|
||||
Id uint64 `json:"id" description:""`
|
||||
UserName string `json:"userName" description:"用户名"`
|
||||
Mobile string `json:"mobile" description:"中国手机不带国家代码,国际手机号格式为:国家代码-手机号"`
|
||||
UserNickname string `json:"userNickname" description:"用户昵称"`
|
||||
Birthday int `json:"birthday" description:"生日"`
|
||||
UserPassword string `json:"userPassword" description:"登录密码;cmf_password加密"`
|
||||
UserSalt string `json:"userSalt" description:"加密盐"`
|
||||
UserStatus uint `json:"userStatus" description:"用户状态;0:禁用,1:正常,2:未验证"`
|
||||
UserEmail string `json:"userEmail" description:"用户登录邮箱"`
|
||||
Sex int `json:"sex" description:"性别;0:保密,1:男,2:女"`
|
||||
Avatar string `json:"avatar" description:"用户头像"`
|
||||
DeptId uint64 `json:"deptId" description:"部门id"`
|
||||
Remark string `json:"remark" description:"备注"`
|
||||
IsAdmin int `json:"isAdmin" description:"是否后台管理员 1 是 0 否"`
|
||||
Address string `json:"address" description:"联系地址"`
|
||||
Describe string `json:"describe" description:"描述信息"`
|
||||
LastLoginIp string `json:"lastLoginIp" description:"最后登录ip"`
|
||||
LastLoginTime *gtime.Time `json:"lastLoginTime" description:"最后登录时间"`
|
||||
CreatedAt *gtime.Time `json:"createdAt" description:"创建时间"`
|
||||
UpdatedAt *gtime.Time `json:"updatedAt" description:"更新时间"`
|
||||
DeletedAt *gtime.Time `json:"deletedAt" description:"删除时间"`
|
||||
TenantId uint64 `orm:"tenantId" description:"租户id"`
|
||||
}
|
||||
21
internal/app/system/model/entity/sys_user_online.go
Normal file
21
internal/app/system/model/entity/sys_user_online.go
Normal file
@@ -0,0 +1,21 @@
|
||||
// =================================================================================
|
||||
// Code generated by GoFrame CLI tool. DO NOT EDIT.
|
||||
// =================================================================================
|
||||
|
||||
package entity
|
||||
|
||||
import (
|
||||
"github.com/gogf/gf/v2/os/gtime"
|
||||
)
|
||||
|
||||
// SysUserOnline is the golang structure for table sys_user_online.
|
||||
type SysUserOnline struct {
|
||||
Id uint64 `json:"id" description:""`
|
||||
Uuid string `json:"uuid" description:"用户标识"`
|
||||
Token string `json:"token" description:"用户token"`
|
||||
CreateTime *gtime.Time `json:"createTime" description:"登录时间"`
|
||||
UserName string `json:"userName" description:"用户名"`
|
||||
Ip string `json:"ip" description:"登录ip"`
|
||||
Explorer string `json:"explorer" description:"浏览器"`
|
||||
Os string `json:"os" description:"操作系统"`
|
||||
}
|
||||
11
internal/app/system/model/entity/sys_user_post.go
Normal file
11
internal/app/system/model/entity/sys_user_post.go
Normal file
@@ -0,0 +1,11 @@
|
||||
// =================================================================================
|
||||
// Code generated by GoFrame CLI tool. DO NOT EDIT.
|
||||
// =================================================================================
|
||||
|
||||
package entity
|
||||
|
||||
// SysUserPost is the golang structure for table sys_user_post.
|
||||
type SysUserPost struct {
|
||||
UserId int64 `json:"userId" description:"用户ID"`
|
||||
PostId int64 `json:"postId" description:"岗位ID"`
|
||||
}
|
||||
25
internal/app/system/model/entity/tenant.go
Normal file
25
internal/app/system/model/entity/tenant.go
Normal file
@@ -0,0 +1,25 @@
|
||||
// =================================================================================
|
||||
// Code generated by GoFrame CLI tool. DO NOT EDIT. Created at 2022-03-02 16:48:23
|
||||
// =================================================================================
|
||||
|
||||
package entity
|
||||
|
||||
import (
|
||||
"github.com/gogf/gf/v2/os/gtime"
|
||||
"github.com/tiger1103/gfast/v3/internal/app/system/consts"
|
||||
)
|
||||
|
||||
// Tenant is the golang structure for table tenant.
|
||||
type Tenant struct {
|
||||
Id uint64 `json:"id" description:""`
|
||||
CreateBy uint64 `json:"createBy" description:"创建者"`
|
||||
UpdateBy uint64 `json:"updateBy" description:"更新者"`
|
||||
CreatedAt *gtime.Time `json:"createdAt" description:"创建时间"`
|
||||
UpdatedAt *gtime.Time `json:"updatedAt" description:"更新时间"`
|
||||
TenantName string `json:"tenantName" description:"租户名称"`
|
||||
TenantType consts.TenantType `json:"tenantType" description:"租户类型"`
|
||||
CityCode string `json:"cityCode" description:"城市编码"`
|
||||
BusinessLicense string `json:"businessLicense" description:"营业执照"`
|
||||
TenantSource uint64 `json:"tenantSource" description:"租户来源"`
|
||||
AdminBy uint64 `json:"adminBy" description:"管理者"`
|
||||
}
|
||||
Reference in New Issue
Block a user