Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AutoCodeStruct ¶
type AutoCodeStruct struct { StructName string `json:"structName"` // Struct名称 TableName string `json:"tableName"` // 表名 PackageName string `json:"packageName"` // 文件名称 HumpPackageName string `json:"humpPackageName"` // go文件名称 Abbreviation string `json:"abbreviation"` // Struct简称 Description string `json:"description"` // Struct中文名称 AutoCreateApiToSql bool `json:"autoCreateApiToSql"` // 是否自动创建api AutoCreateMenuToSql bool `json:"autoCreateMenuToSql"` // 是否自动创建menu AutoCreateResource bool `json:"autoCreateResource"` // 是否自动创建资源标识 AutoMoveFile bool `json:"autoMoveFile"` // 是否自动移动文件 BusinessDB string `json:"businessDB"` // 业务数据库 DefaultModel bool `json:"defaultModel"` // 是否使用默认Model Fields []*Field `json:"fields"` PrimaryField *Field `json:"primaryField"` HasTimer bool `json:"-"` HasSearchTimer bool `json:"-"` DictTypes []string `json:"-"` Package string `json:"package"` PackageT string `json:"-"` NeedSort bool `json:"-"` HasPic bool `json:"-"` HasRichText bool `json:"-"` HasFile bool `json:"-"` NeedJSON bool `json:"-"` }
func (*AutoCodeStruct) Pretreatment ¶
func (a *AutoCodeStruct) Pretreatment()
type Field ¶
type Field struct { FieldName string `json:"fieldName"` // Field名 FieldDesc string `json:"fieldDesc"` // 中文名 FieldType string `json:"fieldType"` // Field数据类型 FieldJson string `json:"fieldJson"` // FieldJson DataTypeLong string `json:"dataTypeLong"` // 数据库字段长度 Comment string `json:"comment"` // 数据库字段描述 ColumnName string `json:"columnName"` // 数据库字段 FieldSearchType string `json:"fieldSearchType"` // 搜索条件 DictType string `json:"dictType"` // 字典 Require bool `json:"require"` // 是否必填 ErrorText string `json:"errorText"` // 校验失败文字 Clearable bool `json:"clearable"` // 是否可清空 Sort bool `json:"sort"` // 是否增加排序 PrimaryKey bool `json:"primaryKey"` // 是否主键 }
type SysApi ¶
type SysAutoCode ¶
type SysAutoCode struct { global.MAY_MODEL PackageName string `json:"packageName" gorm:"comment:包名"` Label string `json:"label" gorm:"comment:标签"` Desc string `json:"desc" gorm:"comment:描述"` }
func (SysAutoCode) TableName ¶
func (SysAutoCode) TableName() string
type SysBaseMenu ¶
type SysBaseMenu struct { global.MAY_MODEL MenuLevel uint `json:"-" gorm:"default:0;comment:菜单级别"` ParentId uint `json:"parentId" gorm:"default:0;comment:父菜单ID"` Path string `json:"path" gorm:"comment:路由path"` Name string `json:"name" gorm:"comment:路由name"` Hidden bool `json:"hidden" gorm:"comment:是否在列表隐藏"` Component string `json:"component" gorm:"comment:对应的文件路径"` Sort int `json:"sort" gorm:"comment:排序"` Meta Meta `json:"meta" gorm:"embedded;comment:附加属性"` SysRoles []SysRole `json:"sysRoles" gorm:"many2many:sys_role_menus;"` Children []SysBaseMenu `json:"children" gorm:"-"` }
func (SysBaseMenu) TableName ¶
func (SysBaseMenu) TableName() string
type SysDept ¶
type SysDept struct { DeptId int `json:"deptId" gorm:"primary_key;not null;unique;comment:部门ID;size:90"` ParentId int `json:"parentId" gorm:"comment:上级部门"` DeptPath string `json:"deptPath" gorm:"size:255"` DeptName string `json:"deptName" gorm:"comment:部门名称;size:255"` Sort int `json:"sort" gorm:"comment:排序;size:4"` Leader string `json:"leader" gorm:"comment:负责人;size:128"` Phone string `json:"phone" gorm:"comment:手机号码;size:11"` Email string `json:"email" gorm:"comment:邮箱;size:64"` Status string `json:"status" gorm:"default:1;comment:状态;size:4"` Children []SysDept `json:"children" gorm:"-"` CreatedAt time.Time UpdatedAt time.Time DeletedAt *time.Time }
type SysDictionary ¶
type SysDictionary struct { global.MAY_MODEL Name string `json:"name" form:"name" gorm:"column:name;comment:字典名(中)"` Type string `json:"type" form:"type" gorm:"column:type;comment:字典名(英)"` Status *bool `json:"status" form:"status" gorm:"column:status;comment:启用状态"` Desc string `json:"desc" form:"desc" gorm:"column:desc;comment:描述"` SysDictionaryDetails []SysDictionaryDetail `json:"sys-dictionary-details" form:"sysDictionaryDetails"` }
func (SysDictionary) TableName ¶
func (SysDictionary) TableName() string
type SysDictionaryDetail ¶
type SysDictionaryDetail struct { global.MAY_MODEL Label string `json:"label" form:"label" gorm:"column:label;comment:展示值"` Value string `json:"value" form:"value" gorm:"column:value;comment:字典值"` Extend string `json:"extend" form:"extend" gorm:"column:extend;comment:扩展值"` Status *bool `json:"status" form:"status" gorm:"column:status;comment:启用状态"` Sort int `json:"sort" form:"sort" gorm:"column:sort;comment:排序标记"` SysDictionaryID int `json:"sysDictionaryID" form:"sysDictionaryID" gorm:"column:sys_dictionary_id"` }
func (SysDictionaryDetail) TableName ¶
func (SysDictionaryDetail) TableName() string
type SysRole ¶
type SysRole struct { CreatedAt time.Time // 创建时间 UpdatedAt time.Time // 更新时间 DeletedAt *time.Time `sql:"index"` // 删除时间 RoleId uint `json:"roleId" gorm:"not null;unique;primary_key;comment:角色ID;size:90"` // 角色ID RoleName string `json:"roleName" gorm:"comment:角色名"` // 角色名 ParentId *uint `json:"parentId" gorm:"comment:父角色ID"` // 父角色ID DataRoleId []*SysRole `json:"dataRoleId" gorm:"many2many:sys_data_role_id;"` Children []SysRole `json:"children" gorm:"-"` SysBaseMenus []SysBaseMenu `json:"menus" gorm:"many2many:sys_role_menus;"` Users []SysUser `json:"-" gorm:"many2many:sys_user_role;"` DefaultRouter string `json:"defaultRouter" gorm:"comment:默认菜单;default:Dashboard"` // 默认菜单(默认dashboard) }
type SysRoleMenu ¶
type SysRoleMenu struct { MenuId uint `json:"menuId" gorm:"column:sys_base_menu_id"` RoleId uint `json:"roleId" gorm:"column:sys_role_role_id"` }
func (SysRoleMenu) TableName ¶
func (SysRoleMenu) TableName() string
type SysUser ¶
type SysUser struct { global.MAY_MODEL UUID uuid.UUID `json:"uuid" gorm:"comment:用户UUID"` Username string `json:"userName" gorm:"comment:用户登录名"` // 用户登录名 Sex int `json:"sex" gorm:"default:1;comment:用户性别"` // 用户性别 1为男,2为女 Password string `json:"-" gorm:"comment:用户登录密码"` // 用户登录密码 NickName string `json:"nickName" gorm:"default:admin;comment:用户昵称"` // 用户昵称 ThemeColor string `json:"themeColor" gorm:"default:#409eff;comment:主题颜色"` // 用户主题颜色 HeaderImg string `json:"headerImg" gorm:"default:https://qmplusimg.henrongyi.top/gva_header.jpg;comment:用户头像"` // 用户头像 Phone string `json:"phone" gorm:"comment:用户手机号"` // 用户手机号 Email string `json:"email" gorm:"comment:用户邮箱"` // 用户邮箱 Status int `json:"status" gorm:"default:1;comment:用户状态 1为开启,2为禁用"` // 用户状态 1为开启,2为禁用 RolesId uint `json:"rolesId" gorm:"comment:用户角色ID"` // 用户角色ID SysRole SysRole `json:"sysRole" gorm:"foreignKey:RolesId;references:RoleId"` SysRoles []SysRole `json:"sysRoles" gorm:"many2many:sys_user_role;"` DeptsId int `json:"deptsId" gorm:"用户部门ID"` SysDept SysDept `json:"sysDept" gorm:"foreignKey:DeptsId;references:DeptId"` }
type SysUserRole ¶
type SysUserRole struct { SysUserId uint `gorm:"column:sys_user_id"` SysRoleRoleId uint `gorm:"column:sys_role_role_id"` }
func (SysUserRole) TableName ¶
func (SysUserRole) TableName() string
Click to show internal directories.
Click to hide internal directories.