mirror of
https://gitee.com/XM-GO/PandaX.git
synced 2026-04-23 02:48:34 +08:00
代码生成
This commit is contained in:
@@ -8,7 +8,7 @@ type SysConfig struct {
|
||||
ConfigKey string `json:"configKey" gorm:"type:varchar(128);comment:ConfigKey"`
|
||||
ConfigValue string `json:"configValue" gorm:"type:varchar(255);comment:ConfigValue"`
|
||||
ConfigType string `json:"configType" gorm:"type:varchar(64);comment:是否系统内置0,1"`
|
||||
IsFrontend int `json:"isFrontend" gorm:"type:varchar(64);comment:是否前台"`
|
||||
IsFrontend string `json:"isFrontend" gorm:"type:varchar(1);comment:是否前台"`
|
||||
Remark string `json:"remark" gorm:"type:varchar(128);comment:Remark"`
|
||||
model.BaseModel
|
||||
}
|
||||
|
||||
@@ -4,10 +4,10 @@ import "pandax/base/model"
|
||||
|
||||
type SysDept struct {
|
||||
DeptId int64 `json:"deptId" gorm:"primary_key;AUTO_INCREMENT"` //部门编码
|
||||
ParentId int64 `json:"parentId" gorm:"type:int(11);comment:上级部门"`
|
||||
ParentId int64 `json:"parentId" gorm:"type:int;comment:上级部门"`
|
||||
DeptPath string `json:"deptPath" gorm:"type:varchar(255);comment:部门路径"`
|
||||
DeptName string `json:"deptName" gorm:"type:varchar(128);comment:部门名称"`
|
||||
Sort int64 `json:"sort" gorm:"type:int(4);comment:排序"`
|
||||
Sort int64 `json:"sort" gorm:"type:int;comment:排序"`
|
||||
Leader string `json:"leader" gorm:"type:varchar(64);comment:负责人"` // userId
|
||||
Phone string `json:"phone" gorm:"type:varchar(11);comment:手机"`
|
||||
Email string `json:"email" gorm:"type:varchar(64);comment:邮箱"`
|
||||
|
||||
@@ -4,7 +4,7 @@ import "pandax/base/model"
|
||||
|
||||
type SysDictData struct {
|
||||
DictCode int64 `json:"dictCode" gorm:"primary_key;AUTO_INCREMENT"`
|
||||
DictSort int `json:"dictSort" gorm:"type:int(11);comment:排序"`
|
||||
DictSort int `json:"dictSort" gorm:"type:int;comment:排序"`
|
||||
DictLabel string `json:"dictLabel" gorm:"type:varchar(64);comment:标签"`
|
||||
DictValue string `json:"dictValue" gorm:"type:varchar(64);comment:值"`
|
||||
DictType string `json:"dictType" gorm:"type:varchar(64);comment:字典类型"`
|
||||
|
||||
@@ -6,13 +6,13 @@ type SysMenu struct {
|
||||
MenuId int64 `json:"menuId" gorm:"primary_key;AUTO_INCREMENT"`
|
||||
MenuName string `json:"menuName" gorm:"type:varchar(128);"`
|
||||
Title string `json:"title" gorm:"type:varchar(64);"`
|
||||
ParentId int64 `json:"parentId" gorm:"type:int(11);"`
|
||||
Sort int64 `json:"sort" gorm:"type:int(4);"`
|
||||
ParentId int64 `json:"parentId" gorm:"type:int;"`
|
||||
Sort int64 `json:"sort" gorm:"type:int;"`
|
||||
Icon string `json:"icon" gorm:"type:varchar(128);"`
|
||||
Path string `json:"path" gorm:"type:varchar(128);"`
|
||||
Component string `json:"component" gorm:"type:varchar(255);"` // 组件路径
|
||||
IsIframe string `json:"isIframe" gorm:"type:varchar(1);"` //是否为内嵌
|
||||
IsLink string `json:"isLink" gorm:"type:varchar(11);"` //是否超链接菜单
|
||||
IsLink string `json:"isLink" gorm:"type:varchar(255);"` //是否超链接菜单
|
||||
MenuType string `json:"menuType" gorm:"type:varchar(1);"` //菜单类型(M目录 C菜单 F按钮)
|
||||
IsHide string `json:"isHide" gorm:"type:varchar(1);"` //显示状态(0显示 1隐藏)
|
||||
IsKeepAlive string `json:"isKeepAlive" gorm:"type:varchar(1);"` //是否缓存组件状态(0是 1否)
|
||||
|
||||
@@ -7,7 +7,7 @@ type SysNotice struct {
|
||||
Title string `json:"title" gorm:"type:varchar(128);comment:标题"`
|
||||
Content string `json:"content" gorm:"type:text;comment:标题"`
|
||||
NoticeType string `json:"noticeType" gorm:"type:varchar(1);comment:通知类型"`
|
||||
DeptId int64 `json:"deptId" gorm:"type:int(11);comment:部门Id,部门及子部门"`
|
||||
DeptId int64 `json:"deptId" gorm:"type:int;comment:部门Id,部门及子部门"`
|
||||
UserName string `json:"userName" gorm:"type:varchar(64);comment:发布人"`
|
||||
|
||||
DeptIds []int64 `json:"deptIds" gorm:"-"`
|
||||
|
||||
@@ -6,7 +6,7 @@ type SysPost struct {
|
||||
PostId int64 `gorm:"primary_key;AUTO_INCREMENT" json:"postId"`
|
||||
PostName string `gorm:"type:varchar(128);comment:岗位名称" json:"postName"`
|
||||
PostCode string `gorm:"type:varchar(128);comment:岗位代码" json:"postCode"`
|
||||
Sort int64 `gorm:"type:int(4);comment:岗位排序" json:"sort"`
|
||||
Sort int64 `gorm:"type:int;comment:岗位排序" json:"sort"`
|
||||
Status string `gorm:"type:varchar(1);comment:状态" json:"status"`
|
||||
Remark string `gorm:"type:varchar(255);comment:描述" json:"remark"`
|
||||
CreateBy string `gorm:"type:varchar(128);" json:"createBy"`
|
||||
|
||||
@@ -10,7 +10,7 @@ type SysRole struct {
|
||||
RoleName string `json:"roleName" gorm:"type:varchar(128);comment:角色名称"`
|
||||
Status string `json:"status" gorm:"type:varchar(1);comment:状态"`
|
||||
RoleKey string `json:"roleKey" gorm:"type:varchar(128);comment:角色代码"`
|
||||
RoleSort int64 `json:"roleSort" gorm:"type:int(4);comment:角色排序"`
|
||||
RoleSort int64 `json:"roleSort" gorm:"type:int;comment:角色排序"`
|
||||
DataScope string `json:"dataScope" gorm:"type:varchar(1);comment:数据范围(1:全部数据权限 2:自定数据权限 3:本部门数据权限 4:本部门及以下数据权限)"`
|
||||
Flag string `json:"flag" gorm:"type:varchar(128);comment:删除标识"`
|
||||
CreateBy string `json:"createBy" gorm:"type:varchar(128);"`
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package entity
|
||||
|
||||
type SysRoleDept struct {
|
||||
RoleId int64 `gorm:"type:int(11)"`
|
||||
DeptId int64 `gorm:"type:int(11)"`
|
||||
RoleId int64 `gorm:"type:int"`
|
||||
DeptId int64 `gorm:"type:int"`
|
||||
Id int64 `gorm:"primary_key;AUTO_INCREMENT;column:id" json:"id" form:"id"`
|
||||
}
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package entity
|
||||
|
||||
type SysRoleMenu struct {
|
||||
RoleId int64 `gorm:"type:int(11)"`
|
||||
MenuId int64 `gorm:"type:int(11)"`
|
||||
RoleId int64 `gorm:"type:int"`
|
||||
MenuId int64 `gorm:"type:int"`
|
||||
RoleName string `gorm:"type:varchar(128)"`
|
||||
Id int64 `gorm:"primary_key;AUTO_INCREMENT;column:id" json:"id" form:"id"`
|
||||
}
|
||||
|
||||
@@ -23,13 +23,13 @@ type SysUserId struct {
|
||||
type SysUserB struct {
|
||||
NickName string `gorm:"type:varchar(128)" json:"nickName"` // 昵称
|
||||
Phone string `gorm:"type:varchar(11)" json:"phone"` // 手机号
|
||||
RoleId int64 `gorm:"type:int(11)" json:"roleId"` // 角色编码
|
||||
RoleId int64 `gorm:"type:int" json:"roleId"` // 角色编码
|
||||
Salt string `gorm:"type:varchar(255)" json:"salt"` //盐
|
||||
Avatar string `gorm:"type:varchar(255)" json:"avatar"` //头像
|
||||
Sex string `gorm:"type:varchar(255)" json:"sex"` //性别
|
||||
Email string `gorm:"type:varchar(128)" json:"email"` //邮箱
|
||||
DeptId int64 `gorm:"type:int(11)" json:"deptId"` //部门编码
|
||||
PostId int64 `gorm:"type:int(11)" json:"postId"` //职位编码
|
||||
DeptId int64 `gorm:"type:int" json:"deptId"` //部门编码
|
||||
PostId int64 `gorm:"type:int" json:"postId"` //职位编码
|
||||
RoleIds string `gorm:"type:varchar(255)" json:"roleIds"` //多角色
|
||||
PostIds string `gorm:"type:varchar(255)" json:"postIds"` // 多岗位
|
||||
CreateBy string `gorm:"type:varchar(128)" json:"createBy"` //
|
||||
|
||||
Reference in New Issue
Block a user