任务三

This commit is contained in:
Yvan
2026-01-07 11:39:23 +08:00
parent b63a296144
commit 259f91c549
64 changed files with 14396 additions and 26 deletions
+24
View File
@@ -0,0 +1,24 @@
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
package model
const TableNameCasbinRule = "casbin_rule"
// CasbinRule mapped from table <casbin_rule>
type CasbinRule struct {
ID int64 `gorm:"column:id;type:bigint(20) unsigned;primaryKey;autoIncrement:true" json:"id"`
Ptype *string `gorm:"column:ptype;type:varchar(100);uniqueIndex:idx_casbin_rule,priority:1" json:"ptype"`
V0 *string `gorm:"column:v0;type:varchar(100);uniqueIndex:idx_casbin_rule,priority:2" json:"v0"`
V1 *string `gorm:"column:v1;type:varchar(100);uniqueIndex:idx_casbin_rule,priority:3" json:"v1"`
V2 *string `gorm:"column:v2;type:varchar(100);uniqueIndex:idx_casbin_rule,priority:4" json:"v2"`
V3 *string `gorm:"column:v3;type:varchar(100);uniqueIndex:idx_casbin_rule,priority:5" json:"v3"`
V4 *string `gorm:"column:v4;type:varchar(100);uniqueIndex:idx_casbin_rule,priority:6" json:"v4"`
V5 *string `gorm:"column:v5;type:varchar(100);uniqueIndex:idx_casbin_rule,priority:7" json:"v5"`
}
// TableName CasbinRule's table name
func (*CasbinRule) TableName() string {
return TableNameCasbinRule
}
+28 -1
View File
@@ -1,6 +1,9 @@
package model
import (
"database/sql/driver"
"encoding/json"
"errors"
"time"
"gorm.io/gorm"
@@ -8,12 +11,36 @@ import (
// Model 基础模型
type Model struct {
ID uint `gorm:"primarykey" json:"id"`
ID uint `gorm:"primarykey" json:"ID"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
DeletedAt gorm.DeletedAt `gorm:"index" json:"-"`
}
// JSONMap JSON Map类型
type JSONMap map[string]interface{}
// Value 实现driver.Valuer接口
func (j JSONMap) Value() (driver.Value, error) {
if j == nil {
return nil, nil
}
return json.Marshal(j)
}
// Scan 实现sql.Scanner接口
func (j *JSONMap) Scan(value interface{}) error {
if value == nil {
*j = nil
return nil
}
bytes, ok := value.([]byte)
if !ok {
return errors.New("type assertion to []byte failed")
}
return json.Unmarshal(bytes, j)
}
// PageInfo 分页请求
type PageInfo struct {
Page int `json:"page" form:"page"`
@@ -0,0 +1,28 @@
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
package model
import (
"time"
"gorm.io/gorm"
)
const TableNameExaAttachmentCategory = "exa_attachment_category"
// ExaAttachmentCategory mapped from table <exa_attachment_category>
type ExaAttachmentCategory struct {
ID int64 `gorm:"column:id;type:bigint(20) unsigned;primaryKey;autoIncrement:true" json:"id"`
CreatedAt *time.Time `gorm:"column:created_at;type:datetime(3)" json:"created_at"`
UpdatedAt *time.Time `gorm:"column:updated_at;type:datetime(3)" json:"updated_at"`
DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;type:datetime(3);index:idx_exa_attachment_category_deleted_at,priority:1" json:"deleted_at"`
Name *string `gorm:"column:name;type:varchar(255);comment:分类名称" json:"name"` // 分类名称
Pid *int64 `gorm:"column:pid;type:bigint(20);comment:父节点ID" json:"pid"` // 父节点ID
}
// TableName ExaAttachmentCategory's table name
func (*ExaAttachmentCategory) TableName() string {
return TableNameExaAttachmentCategory
}
+30
View File
@@ -0,0 +1,30 @@
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
package model
import (
"time"
"gorm.io/gorm"
)
const TableNameExaCustomer = "exa_customers"
// ExaCustomer mapped from table <exa_customers>
type ExaCustomer struct {
ID int64 `gorm:"column:id;type:bigint(20) unsigned;primaryKey;autoIncrement:true" json:"id"`
CreatedAt *time.Time `gorm:"column:created_at;type:datetime(3)" json:"created_at"`
UpdatedAt *time.Time `gorm:"column:updated_at;type:datetime(3)" json:"updated_at"`
DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;type:datetime(3);index:idx_exa_customers_deleted_at,priority:1" json:"deleted_at"`
CustomerName *string `gorm:"column:customer_name;type:varchar(191);comment:客户名" json:"customer_name"` // 客户名
CustomerPhoneData *string `gorm:"column:customer_phone_data;type:varchar(191);comment:客户手机号" json:"customer_phone_data"` // 客户手机号
SysUserID *int64 `gorm:"column:sys_user_id;type:bigint(20) unsigned;comment:管理ID" json:"sys_user_id"` // 管理ID
SysUserAuthorityID *int64 `gorm:"column:sys_user_authority_id;type:bigint(20) unsigned;comment:管理角色ID" json:"sys_user_authority_id"` // 管理角色ID
}
// TableName ExaCustomer's table name
func (*ExaCustomer) TableName() string {
return TableNameExaCustomer
}
@@ -0,0 +1,29 @@
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
package model
import (
"time"
"gorm.io/gorm"
)
const TableNameExaFileChunk = "exa_file_chunks"
// ExaFileChunk mapped from table <exa_file_chunks>
type ExaFileChunk struct {
ID int64 `gorm:"column:id;type:bigint(20) unsigned;primaryKey;autoIncrement:true" json:"id"`
CreatedAt *time.Time `gorm:"column:created_at;type:datetime(3)" json:"created_at"`
UpdatedAt *time.Time `gorm:"column:updated_at;type:datetime(3)" json:"updated_at"`
DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;type:datetime(3);index:idx_exa_file_chunks_deleted_at,priority:1" json:"deleted_at"`
ExaFileID *int64 `gorm:"column:exa_file_id;type:bigint(20) unsigned" json:"exa_file_id"`
FileChunkNumber *int64 `gorm:"column:file_chunk_number;type:bigint(20)" json:"file_chunk_number"`
FileChunkPath *string `gorm:"column:file_chunk_path;type:varchar(191)" json:"file_chunk_path"`
}
// TableName ExaFileChunk's table name
func (*ExaFileChunk) TableName() string {
return TableNameExaFileChunk
}
@@ -0,0 +1,31 @@
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
package model
import (
"time"
"gorm.io/gorm"
)
const TableNameExaFileUploadAndDownload = "exa_file_upload_and_downloads"
// ExaFileUploadAndDownload mapped from table <exa_file_upload_and_downloads>
type ExaFileUploadAndDownload struct {
ID int64 `gorm:"column:id;type:bigint(20) unsigned;primaryKey;autoIncrement:true" json:"id"`
CreatedAt *time.Time `gorm:"column:created_at;type:datetime(3)" json:"created_at"`
UpdatedAt *time.Time `gorm:"column:updated_at;type:datetime(3)" json:"updated_at"`
DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;type:datetime(3);index:idx_exa_file_upload_and_downloads_deleted_at,priority:1" json:"deleted_at"`
Name *string `gorm:"column:name;type:varchar(191);comment:文件名" json:"name"` // 文件名
ClassID *int64 `gorm:"column:class_id;type:bigint(20);comment:分类id" json:"class_id"` // 分类id
URL *string `gorm:"column:url;type:varchar(191);comment:文件地址" json:"url"` // 文件地址
Tag *string `gorm:"column:tag;type:varchar(191);comment:文件标签" json:"tag"` // 文件标签
Key *string `gorm:"column:key;type:varchar(191);comment:编号" json:"key"` // 编号
}
// TableName ExaFileUploadAndDownload's table name
func (*ExaFileUploadAndDownload) TableName() string {
return TableNameExaFileUploadAndDownload
}
+31
View File
@@ -0,0 +1,31 @@
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
package model
import (
"time"
"gorm.io/gorm"
)
const TableNameExaFile = "exa_files"
// ExaFile mapped from table <exa_files>
type ExaFile struct {
ID int64 `gorm:"column:id;type:bigint(20) unsigned;primaryKey;autoIncrement:true" json:"id"`
CreatedAt *time.Time `gorm:"column:created_at;type:datetime(3)" json:"created_at"`
UpdatedAt *time.Time `gorm:"column:updated_at;type:datetime(3)" json:"updated_at"`
DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;type:datetime(3);index:idx_exa_files_deleted_at,priority:1" json:"deleted_at"`
FileName *string `gorm:"column:file_name;type:varchar(191)" json:"file_name"`
FileMd5 *string `gorm:"column:file_md5;type:varchar(191)" json:"file_md5"`
FilePath *string `gorm:"column:file_path;type:varchar(191)" json:"file_path"`
ChunkTotal *int64 `gorm:"column:chunk_total;type:bigint(20)" json:"chunk_total"`
IsFinish *bool `gorm:"column:is_finish;type:tinyint(1)" json:"is_finish"`
}
// TableName ExaFile's table name
func (*ExaFile) TableName() string {
return TableNameExaFile
}
@@ -0,0 +1,30 @@
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
package model
import (
"time"
"gorm.io/gorm"
)
const TableNameGvaAnnouncementsInfo = "gva_announcements_info"
// GvaAnnouncementsInfo mapped from table <gva_announcements_info>
type GvaAnnouncementsInfo struct {
ID int64 `gorm:"column:id;type:bigint(20) unsigned;primaryKey;autoIncrement:true" json:"id"`
CreatedAt *time.Time `gorm:"column:created_at;type:datetime(3)" json:"created_at"`
UpdatedAt *time.Time `gorm:"column:updated_at;type:datetime(3)" json:"updated_at"`
DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;type:datetime(3);index:idx_gva_announcements_info_deleted_at,priority:1" json:"deleted_at"`
Title *string `gorm:"column:title;type:varchar(191);comment:公告标题" json:"title"` // 公告标题
Content *string `gorm:"column:content;type:text;comment:公告内容" json:"content"` // 公告内容
UserID *int64 `gorm:"column:user_id;type:bigint(20);comment:发布者" json:"user_id"` // 发布者
Attachments *string `gorm:"column:attachments;type:json;comment:相关附件" json:"attachments"` // 相关附件
}
// TableName GvaAnnouncementsInfo's table name
func (*GvaAnnouncementsInfo) TableName() string {
return TableNameGvaAnnouncementsInfo
}
+27
View File
@@ -0,0 +1,27 @@
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
package model
import (
"time"
"gorm.io/gorm"
)
const TableNameJwtBlacklist = "jwt_blacklists"
// JwtBlacklist mapped from table <jwt_blacklists>
type JwtBlacklist struct {
ID int64 `gorm:"column:id;type:bigint(20) unsigned;primaryKey;autoIncrement:true" json:"id"`
CreatedAt *time.Time `gorm:"column:created_at;type:datetime(3)" json:"created_at"`
UpdatedAt *time.Time `gorm:"column:updated_at;type:datetime(3)" json:"updated_at"`
DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;type:datetime(3);index:idx_jwt_blacklists_deleted_at,priority:1" json:"deleted_at"`
Jwt *string `gorm:"column:jwt;type:text;comment:jwt" json:"jwt"` // jwt
}
// TableName JwtBlacklist's table name
func (*JwtBlacklist) TableName() string {
return TableNameJwtBlacklist
}
+30
View File
@@ -0,0 +1,30 @@
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
package model
import (
"time"
"gorm.io/gorm"
)
const TableNameSysAPI = "sys_apis"
// SysAPI mapped from table <sys_apis>
type SysAPI struct {
ID int64 `gorm:"column:id;type:bigint(20) unsigned;primaryKey;autoIncrement:true" json:"id"`
CreatedAt *time.Time `gorm:"column:created_at;type:datetime(3)" json:"created_at"`
UpdatedAt *time.Time `gorm:"column:updated_at;type:datetime(3)" json:"updated_at"`
DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;type:datetime(3);index:idx_sys_apis_deleted_at,priority:1" json:"deleted_at"`
Path *string `gorm:"column:path;type:varchar(191);comment:api路径" json:"path"` // api路径
Description *string `gorm:"column:description;type:varchar(191);comment:api中文描述" json:"description"` // api中文描述
APIGroup *string `gorm:"column:api_group;type:varchar(191);comment:api组" json:"api_group"` // api组
Method *string `gorm:"column:method;type:varchar(191);default:POST;comment:方法" json:"method"` // 方法
}
// TableName SysAPI's table name
func (*SysAPI) TableName() string {
return TableNameSysAPI
}
@@ -0,0 +1,29 @@
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
package model
import (
"time"
"gorm.io/gorm"
)
const TableNameSysAuthority = "sys_authorities"
// SysAuthority mapped from table <sys_authorities>
type SysAuthority struct {
CreatedAt *time.Time `gorm:"column:created_at;type:datetime(3)" json:"created_at"`
UpdatedAt *time.Time `gorm:"column:updated_at;type:datetime(3)" json:"updated_at"`
DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;type:datetime(3)" json:"deleted_at"`
AuthorityID int64 `gorm:"column:authority_id;type:bigint(20) unsigned;primaryKey;autoIncrement:true;uniqueIndex:uni_sys_authorities_authority_id,priority:1;comment:角色ID" json:"authority_id"` // 角色ID
AuthorityName *string `gorm:"column:authority_name;type:varchar(191);comment:角色名" json:"authority_name"` // 角色名
ParentID *int64 `gorm:"column:parent_id;type:bigint(20) unsigned;comment:父角色ID" json:"parent_id"` // 父角色ID
DefaultRouter *string `gorm:"column:default_router;type:varchar(191);default:dashboard;comment:默认菜单" json:"default_router"` // 默认菜单
}
// TableName SysAuthority's table name
func (*SysAuthority) TableName() string {
return TableNameSysAuthority
}
@@ -0,0 +1,19 @@
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
package model
const TableNameSysAuthorityBtn = "sys_authority_btns"
// SysAuthorityBtn mapped from table <sys_authority_btns>
type SysAuthorityBtn struct {
AuthorityID *int64 `gorm:"column:authority_id;type:bigint(20) unsigned;comment:角色ID" json:"authority_id"` // 角色ID
SysMenuID *int64 `gorm:"column:sys_menu_id;type:bigint(20) unsigned;comment:菜单ID" json:"sys_menu_id"` // 菜单ID
SysBaseMenuBtnID *int64 `gorm:"column:sys_base_menu_btn_id;type:bigint(20) unsigned;comment:菜单按钮ID" json:"sys_base_menu_btn_id"` // 菜单按钮ID
}
// TableName SysAuthorityBtn's table name
func (*SysAuthorityBtn) TableName() string {
return TableNameSysAuthorityBtn
}
@@ -0,0 +1,18 @@
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
package model
const TableNameSysAuthorityMenu = "sys_authority_menus"
// SysAuthorityMenu mapped from table <sys_authority_menus>
type SysAuthorityMenu struct {
SysBaseMenuID int64 `gorm:"column:sys_base_menu_id;type:bigint(20) unsigned;primaryKey" json:"sys_base_menu_id"`
SysAuthorityAuthorityID int64 `gorm:"column:sys_authority_authority_id;type:bigint(20) unsigned;primaryKey;comment:角色ID" json:"sys_authority_authority_id"` // 角色ID
}
// TableName SysAuthorityMenu's table name
func (*SysAuthorityMenu) TableName() string {
return TableNameSysAuthorityMenu
}
@@ -0,0 +1,40 @@
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
package model
import (
"time"
"gorm.io/gorm"
)
const TableNameSysAutoCodeHistory = "sys_auto_code_histories"
// SysAutoCodeHistory mapped from table <sys_auto_code_histories>
type SysAutoCodeHistory struct {
ID int64 `gorm:"column:id;type:bigint(20) unsigned;primaryKey;autoIncrement:true" json:"id"`
CreatedAt *time.Time `gorm:"column:created_at;type:datetime(3)" json:"created_at"`
UpdatedAt *time.Time `gorm:"column:updated_at;type:datetime(3)" json:"updated_at"`
DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;type:datetime(3);index:idx_sys_auto_code_histories_deleted_at,priority:1" json:"deleted_at"`
TblName *string `gorm:"column:table_name;type:varchar(191);comment:表名" json:"table_name"` // 表名
Package *string `gorm:"column:package;type:varchar(191);comment:模块名/插件名" json:"package"` // 模块名/插件名
Request *string `gorm:"column:request;type:text;comment:前端传入的结构化信息" json:"request"` // 前端传入的结构化信息
StructName *string `gorm:"column:struct_name;type:varchar(191);comment:结构体名称" json:"struct_name"` // 结构体名称
Abbreviation *string `gorm:"column:abbreviation;type:varchar(191);comment:结构体名称缩写" json:"abbreviation"` // 结构体名称缩写
BusinessDb *string `gorm:"column:business_db;type:varchar(191);comment:业务库" json:"business_db"` // 业务库
Description *string `gorm:"column:description;type:varchar(191);comment:Struct中文名称" json:"description"` // Struct中文名称
Templates *string `gorm:"column:templates;type:text;comment:模板信息" json:"templates"` // 模板信息
Injections *string `gorm:"column:Injections;type:text;comment:注入路径" json:"Injections"` // 注入路径
Flag *int64 `gorm:"column:flag;type:bigint(20);comment:[0:创建,1:回滚]" json:"flag"` // [0:创建,1:回滚]
APIIds *string `gorm:"column:api_ids;type:varchar(191);comment:api表注册内容" json:"api_ids"` // api表注册内容
MenuID *int64 `gorm:"column:menu_id;type:bigint(20) unsigned;comment:菜单ID" json:"menu_id"` // 菜单ID
ExportTemplateID *int64 `gorm:"column:export_template_id;type:bigint(20) unsigned;comment:导出模板ID" json:"export_template_id"` // 导出模板ID
PackageID *int64 `gorm:"column:package_id;type:bigint(20) unsigned;comment:包ID" json:"package_id"` // 包ID
}
// TableName SysAutoCodeHistory's table name
func (*SysAutoCodeHistory) TableName() string {
return TableNameSysAutoCodeHistory
}
@@ -0,0 +1,31 @@
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
package model
import (
"time"
"gorm.io/gorm"
)
const TableNameSysAutoCodePackage = "sys_auto_code_packages"
// SysAutoCodePackage mapped from table <sys_auto_code_packages>
type SysAutoCodePackage struct {
ID int64 `gorm:"column:id;type:bigint(20) unsigned;primaryKey;autoIncrement:true" json:"id"`
CreatedAt *time.Time `gorm:"column:created_at;type:datetime(3)" json:"created_at"`
UpdatedAt *time.Time `gorm:"column:updated_at;type:datetime(3)" json:"updated_at"`
DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;type:datetime(3);index:idx_sys_auto_code_packages_deleted_at,priority:1" json:"deleted_at"`
Desc *string `gorm:"column:desc;type:varchar(191);comment:描述" json:"desc"` // 描述
Label *string `gorm:"column:label;type:varchar(191);comment:展示名" json:"label"` // 展示名
Template *string `gorm:"column:template;type:varchar(191);comment:模版" json:"template"` // 模版
PackageName *string `gorm:"column:package_name;type:varchar(191);comment:包名" json:"package_name"` // 包名
Module *string `gorm:"column:module;type:varchar(191)" json:"module"`
}
// TableName SysAutoCodePackage's table name
func (*SysAutoCodePackage) TableName() string {
return TableNameSysAutoCodePackage
}
@@ -0,0 +1,29 @@
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
package model
import (
"time"
"gorm.io/gorm"
)
const TableNameSysBaseMenuBtn = "sys_base_menu_btns"
// SysBaseMenuBtn mapped from table <sys_base_menu_btns>
type SysBaseMenuBtn struct {
ID int64 `gorm:"column:id;type:bigint(20) unsigned;primaryKey;autoIncrement:true" json:"id"`
CreatedAt *time.Time `gorm:"column:created_at;type:datetime(3)" json:"created_at"`
UpdatedAt *time.Time `gorm:"column:updated_at;type:datetime(3)" json:"updated_at"`
DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;type:datetime(3);index:idx_sys_base_menu_btns_deleted_at,priority:1" json:"deleted_at"`
Name *string `gorm:"column:name;type:varchar(191);comment:按钮关键key" json:"name"` // 按钮关键key
Desc *string `gorm:"column:desc;type:varchar(191)" json:"desc"`
SysBaseMenuID *int64 `gorm:"column:sys_base_menu_id;type:bigint(20) unsigned;comment:菜单ID" json:"sys_base_menu_id"` // 菜单ID
}
// TableName SysBaseMenuBtn's table name
func (*SysBaseMenuBtn) TableName() string {
return TableNameSysBaseMenuBtn
}
@@ -0,0 +1,30 @@
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
package model
import (
"time"
"gorm.io/gorm"
)
const TableNameSysBaseMenuParameter = "sys_base_menu_parameters"
// SysBaseMenuParameter mapped from table <sys_base_menu_parameters>
type SysBaseMenuParameter struct {
ID int64 `gorm:"column:id;type:bigint(20) unsigned;primaryKey;autoIncrement:true" json:"id"`
CreatedAt *time.Time `gorm:"column:created_at;type:datetime(3)" json:"created_at"`
UpdatedAt *time.Time `gorm:"column:updated_at;type:datetime(3)" json:"updated_at"`
DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;type:datetime(3);index:idx_sys_base_menu_parameters_deleted_at,priority:1" json:"deleted_at"`
SysBaseMenuID *int64 `gorm:"column:sys_base_menu_id;type:bigint(20) unsigned" json:"sys_base_menu_id"`
Type *string `gorm:"column:type;type:varchar(191);comment:地址栏携带参数为params还是query" json:"type"` // 地址栏携带参数为params还是query
Key *string `gorm:"column:key;type:varchar(191);comment:地址栏携带参数的key" json:"key"` // 地址栏携带参数的key
Value *string `gorm:"column:value;type:varchar(191);comment:地址栏携带参数的值" json:"value"` // 地址栏携带参数的值
}
// TableName SysBaseMenuParameter's table name
func (*SysBaseMenuParameter) TableName() string {
return TableNameSysBaseMenuParameter
}
+40
View File
@@ -0,0 +1,40 @@
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
package model
import (
"time"
"gorm.io/gorm"
)
const TableNameSysBaseMenu = "sys_base_menus"
// SysBaseMenu mapped from table <sys_base_menus>
type SysBaseMenu struct {
ID int64 `gorm:"column:id;type:bigint(20) unsigned;primaryKey;autoIncrement:true" json:"id"`
CreatedAt *time.Time `gorm:"column:created_at;type:datetime(3)" json:"created_at"`
UpdatedAt *time.Time `gorm:"column:updated_at;type:datetime(3)" json:"updated_at"`
DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;type:datetime(3);index:idx_sys_base_menus_deleted_at,priority:1" json:"deleted_at"`
MenuLevel *int64 `gorm:"column:menu_level;type:bigint(20) unsigned" json:"menu_level"`
ParentID *int64 `gorm:"column:parent_id;type:bigint(20) unsigned;comment:父菜单ID" json:"parent_id"` // 父菜单ID
Path *string `gorm:"column:path;type:varchar(191);comment:路由path" json:"path"` // 路由path
Name *string `gorm:"column:name;type:varchar(191);comment:路由name" json:"name"` // 路由name
Hidden *bool `gorm:"column:hidden;type:tinyint(1);comment:是否在列表隐藏" json:"hidden"` // 是否在列表隐藏
Component *string `gorm:"column:component;type:varchar(191);comment:对应前端文件路径" json:"component"` // 对应前端文件路径
Sort *int64 `gorm:"column:sort;type:bigint(20);comment:排序标记" json:"sort"` // 排序标记
ActiveName *string `gorm:"column:active_name;type:varchar(191);comment:高亮菜单" json:"active_name"` // 高亮菜单
KeepAlive *bool `gorm:"column:keep_alive;type:tinyint(1);comment:是否缓存" json:"keep_alive"` // 是否缓存
DefaultMenu *bool `gorm:"column:default_menu;type:tinyint(1);comment:是否是基础路由(开发中)" json:"default_menu"` // 是否是基础路由(开发中)
Title *string `gorm:"column:title;type:varchar(191);comment:菜单名" json:"title"` // 菜单名
Icon *string `gorm:"column:icon;type:varchar(191);comment:菜单图标" json:"icon"` // 菜单图标
CloseTab *bool `gorm:"column:close_tab;type:tinyint(1);comment:自动关闭tab" json:"close_tab"` // 自动关闭tab
TransitionType *string `gorm:"column:transition_type;type:varchar(191);comment:路由切换动画" json:"transition_type"` // 路由切换动画
}
// TableName SysBaseMenu's table name
func (*SysBaseMenu) TableName() string {
return TableNameSysBaseMenu
}
@@ -0,0 +1,18 @@
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
package model
const TableNameSysDataAuthorityID = "sys_data_authority_id"
// SysDataAuthorityID mapped from table <sys_data_authority_id>
type SysDataAuthorityID struct {
SysAuthorityAuthorityID int64 `gorm:"column:sys_authority_authority_id;type:bigint(20) unsigned;primaryKey;comment:角色ID" json:"sys_authority_authority_id"` // 角色ID
DataAuthorityIDAuthorityID int64 `gorm:"column:data_authority_id_authority_id;type:bigint(20) unsigned;primaryKey;comment:角色ID" json:"data_authority_id_authority_id"` // 角色ID
}
// TableName SysDataAuthorityID's table name
func (*SysDataAuthorityID) TableName() string {
return TableNameSysDataAuthorityID
}
@@ -0,0 +1,31 @@
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
package model
import (
"time"
"gorm.io/gorm"
)
const TableNameSysDictionary = "sys_dictionaries"
// SysDictionary mapped from table <sys_dictionaries>
type SysDictionary struct {
ID int64 `gorm:"column:id;type:bigint(20) unsigned;primaryKey;autoIncrement:true" json:"id"`
CreatedAt *time.Time `gorm:"column:created_at;type:datetime(3)" json:"created_at"`
UpdatedAt *time.Time `gorm:"column:updated_at;type:datetime(3)" json:"updated_at"`
DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;type:datetime(3);index:idx_sys_dictionaries_deleted_at,priority:1" json:"deleted_at"`
Name *string `gorm:"column:name;type:varchar(191);comment:字典名(中)" json:"name"` // 字典名(中)
Type *string `gorm:"column:type;type:varchar(191);comment:字典名(英)" json:"type"` // 字典名(英)
Status *bool `gorm:"column:status;type:tinyint(1);comment:状态" json:"status"` // 状态
Desc *string `gorm:"column:desc;type:varchar(191);comment:描述" json:"desc"` // 描述
ParentID *int64 `gorm:"column:parent_id;type:bigint(20) unsigned;comment:父级字典ID" json:"parent_id"` // 父级字典ID
}
// TableName SysDictionary's table name
func (*SysDictionary) TableName() string {
return TableNameSysDictionary
}
@@ -0,0 +1,35 @@
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
package model
import (
"time"
"gorm.io/gorm"
)
const TableNameSysDictionaryDetail = "sys_dictionary_details"
// SysDictionaryDetail mapped from table <sys_dictionary_details>
type SysDictionaryDetail struct {
ID int64 `gorm:"column:id;type:bigint(20) unsigned;primaryKey;autoIncrement:true" json:"id"`
CreatedAt *time.Time `gorm:"column:created_at;type:datetime(3)" json:"created_at"`
UpdatedAt *time.Time `gorm:"column:updated_at;type:datetime(3)" json:"updated_at"`
DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;type:datetime(3);index:idx_sys_dictionary_details_deleted_at,priority:1" json:"deleted_at"`
Label *string `gorm:"column:label;type:varchar(191);comment:展示值" json:"label"` // 展示值
Value *string `gorm:"column:value;type:varchar(191);comment:字典值" json:"value"` // 字典值
Extend *string `gorm:"column:extend;type:varchar(191);comment:扩展值" json:"extend"` // 扩展值
Status *bool `gorm:"column:status;type:tinyint(1);comment:启用状态" json:"status"` // 启用状态
Sort *int64 `gorm:"column:sort;type:bigint(20);comment:排序标记" json:"sort"` // 排序标记
SysDictionaryID *int64 `gorm:"column:sys_dictionary_id;type:bigint(20) unsigned;comment:关联标记" json:"sys_dictionary_id"` // 关联标记
ParentID *int64 `gorm:"column:parent_id;type:bigint(20) unsigned;comment:父级字典详情ID" json:"parent_id"` // 父级字典详情ID
Level *int64 `gorm:"column:level;type:bigint(20);comment:层级深度" json:"level"` // 层级深度
Path *string `gorm:"column:path;type:varchar(191);comment:层级路径" json:"path"` // 层级路径
}
// TableName SysDictionaryDetail's table name
func (*SysDictionaryDetail) TableName() string {
return TableNameSysDictionaryDetail
}
+31
View File
@@ -0,0 +1,31 @@
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
package model
import (
"time"
"gorm.io/gorm"
)
const TableNameSysError = "sys_error"
// SysError mapped from table <sys_error>
type SysError struct {
ID int64 `gorm:"column:id;type:bigint(20) unsigned;primaryKey;autoIncrement:true" json:"id"`
CreatedAt *time.Time `gorm:"column:created_at;type:datetime(3)" json:"created_at"`
UpdatedAt *time.Time `gorm:"column:updated_at;type:datetime(3)" json:"updated_at"`
DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;type:datetime(3);index:idx_sys_error_deleted_at,priority:1" json:"deleted_at"`
Form *string `gorm:"column:form;type:text;comment:错误来源" json:"form"` // 错误来源
Info *string `gorm:"column:info;type:text;comment:错误内容" json:"info"` // 错误内容
Level *string `gorm:"column:level;type:varchar(191);comment:日志等级" json:"level"` // 日志等级
Solution *string `gorm:"column:solution;type:text;comment:解决方案" json:"solution"` // 解决方案
Status *string `gorm:"column:status;type:varchar(20);default:未处理;comment:处理状态" json:"status"` // 处理状态
}
// TableName SysError's table name
func (*SysError) TableName() string {
return TableNameSysError
}
@@ -0,0 +1,30 @@
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
package model
import (
"time"
"gorm.io/gorm"
)
const TableNameSysExportTemplateCondition = "sys_export_template_condition"
// SysExportTemplateCondition mapped from table <sys_export_template_condition>
type SysExportTemplateCondition struct {
ID int64 `gorm:"column:id;type:bigint(20) unsigned;primaryKey;autoIncrement:true" json:"id"`
CreatedAt *time.Time `gorm:"column:created_at;type:datetime(3)" json:"created_at"`
UpdatedAt *time.Time `gorm:"column:updated_at;type:datetime(3)" json:"updated_at"`
DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;type:datetime(3);index:idx_sys_export_template_condition_deleted_at,priority:1" json:"deleted_at"`
TemplateID *string `gorm:"column:template_id;type:varchar(191);comment:模板标识" json:"template_id"` // 模板标识
From *string `gorm:"column:from;type:varchar(191);comment:条件取的key" json:"from"` // 条件取的key
Column *string `gorm:"column:column;type:varchar(191);comment:作为查询条件的字段" json:"column"` // 作为查询条件的字段
Operator *string `gorm:"column:operator;type:varchar(191);comment:操作符" json:"operator"` // 操作符
}
// TableName SysExportTemplateCondition's table name
func (*SysExportTemplateCondition) TableName() string {
return TableNameSysExportTemplateCondition
}
@@ -0,0 +1,30 @@
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
package model
import (
"time"
"gorm.io/gorm"
)
const TableNameSysExportTemplateJoin = "sys_export_template_join"
// SysExportTemplateJoin mapped from table <sys_export_template_join>
type SysExportTemplateJoin struct {
ID int64 `gorm:"column:id;type:bigint(20) unsigned;primaryKey;autoIncrement:true" json:"id"`
CreatedAt *time.Time `gorm:"column:created_at;type:datetime(3)" json:"created_at"`
UpdatedAt *time.Time `gorm:"column:updated_at;type:datetime(3)" json:"updated_at"`
DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;type:datetime(3);index:idx_sys_export_template_join_deleted_at,priority:1" json:"deleted_at"`
TemplateID *string `gorm:"column:template_id;type:varchar(191);comment:模板标识" json:"template_id"` // 模板标识
Joins *string `gorm:"column:joins;type:varchar(191);comment:关联" json:"joins"` // 关联
TblName *string `gorm:"column:table;type:varchar(191);comment:关联表" json:"table"` // 关联表
On *string `gorm:"column:on;type:varchar(191);comment:关联条件" json:"on"` // 关联条件
}
// TableName SysExportTemplateJoin's table name
func (*SysExportTemplateJoin) TableName() string {
return TableNameSysExportTemplateJoin
}
@@ -0,0 +1,33 @@
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
package model
import (
"time"
"gorm.io/gorm"
)
const TableNameSysExportTemplate = "sys_export_templates"
// SysExportTemplate mapped from table <sys_export_templates>
type SysExportTemplate struct {
ID int64 `gorm:"column:id;type:bigint(20) unsigned;primaryKey;autoIncrement:true" json:"id"`
CreatedAt *time.Time `gorm:"column:created_at;type:datetime(3)" json:"created_at"`
UpdatedAt *time.Time `gorm:"column:updated_at;type:datetime(3)" json:"updated_at"`
DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;type:datetime(3);index:idx_sys_export_templates_deleted_at,priority:1" json:"deleted_at"`
DbName *string `gorm:"column:db_name;type:varchar(191);comment:数据库名称" json:"db_name"` // 数据库名称
Name *string `gorm:"column:name;type:varchar(191);comment:模板名称" json:"name"` // 模板名称
TblName *string `gorm:"column:table_name;type:varchar(191);comment:表名称" json:"table_name"` // 表名称
TemplateID *string `gorm:"column:template_id;type:varchar(191);comment:模板标识" json:"template_id"` // 模板标识
TemplateInfo *string `gorm:"column:template_info;type:text" json:"template_info"`
Limit *int64 `gorm:"column:limit;type:bigint(20);comment:导出限制" json:"limit"` // 导出限制
Order *string `gorm:"column:order;type:varchar(191);comment:排序" json:"order"` // 排序
}
// TableName SysExportTemplate's table name
func (*SysExportTemplate) TableName() string {
return TableNameSysExportTemplate
}
@@ -0,0 +1,28 @@
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
package model
import (
"time"
"gorm.io/gorm"
)
const TableNameSysIgnoreAPI = "sys_ignore_apis"
// SysIgnoreAPI mapped from table <sys_ignore_apis>
type SysIgnoreAPI struct {
ID int64 `gorm:"column:id;type:bigint(20) unsigned;primaryKey;autoIncrement:true" json:"id"`
CreatedAt *time.Time `gorm:"column:created_at;type:datetime(3)" json:"created_at"`
UpdatedAt *time.Time `gorm:"column:updated_at;type:datetime(3)" json:"updated_at"`
DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;type:datetime(3);index:idx_sys_ignore_apis_deleted_at,priority:1" json:"deleted_at"`
Path *string `gorm:"column:path;type:varchar(191);comment:api路径" json:"path"` // api路径
Method *string `gorm:"column:method;type:varchar(191);default:POST;comment:方法" json:"method"` // 方法
}
// TableName SysIgnoreAPI's table name
func (*SysIgnoreAPI) TableName() string {
return TableNameSysIgnoreAPI
}
@@ -0,0 +1,36 @@
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
package model
import (
"time"
"gorm.io/gorm"
)
const TableNameSysOperationRecord = "sys_operation_records"
// SysOperationRecord mapped from table <sys_operation_records>
type SysOperationRecord struct {
ID int64 `gorm:"column:id;type:bigint(20) unsigned;primaryKey;autoIncrement:true" json:"id"`
CreatedAt *time.Time `gorm:"column:created_at;type:datetime(3)" json:"created_at"`
UpdatedAt *time.Time `gorm:"column:updated_at;type:datetime(3)" json:"updated_at"`
DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;type:datetime(3);index:idx_sys_operation_records_deleted_at,priority:1" json:"deleted_at"`
IP *string `gorm:"column:ip;type:varchar(191);comment:请求ip" json:"ip"` // 请求ip
Method *string `gorm:"column:method;type:varchar(191);comment:请求方法" json:"method"` // 请求方法
Path *string `gorm:"column:path;type:varchar(191);comment:请求路径" json:"path"` // 请求路径
Status *int64 `gorm:"column:status;type:bigint(20);comment:请求状态" json:"status"` // 请求状态
Latency *int64 `gorm:"column:latency;type:bigint(20);comment:延迟" json:"latency"` // 延迟
Agent *string `gorm:"column:agent;type:text;comment:代理" json:"agent"` // 代理
ErrorMessage *string `gorm:"column:error_message;type:varchar(191);comment:错误信息" json:"error_message"` // 错误信息
Body *string `gorm:"column:body;type:text;comment:请求Body" json:"body"` // 请求Body
Resp *string `gorm:"column:resp;type:text;comment:响应Body" json:"resp"` // 响应Body
UserID *int64 `gorm:"column:user_id;type:bigint(20) unsigned;comment:用户id" json:"user_id"` // 用户id
}
// TableName SysOperationRecord's table name
func (*SysOperationRecord) TableName() string {
return TableNameSysOperationRecord
}
+30
View File
@@ -0,0 +1,30 @@
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
package model
import (
"time"
"gorm.io/gorm"
)
const TableNameSysParam = "sys_params"
// SysParam mapped from table <sys_params>
type SysParam struct {
ID int64 `gorm:"column:id;type:bigint(20) unsigned;primaryKey;autoIncrement:true" json:"id"`
CreatedAt *time.Time `gorm:"column:created_at;type:datetime(3)" json:"created_at"`
UpdatedAt *time.Time `gorm:"column:updated_at;type:datetime(3)" json:"updated_at"`
DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;type:datetime(3);index:idx_sys_params_deleted_at,priority:1" json:"deleted_at"`
Name *string `gorm:"column:name;type:varchar(191);comment:参数名称" json:"name"` // 参数名称
Key *string `gorm:"column:key;type:varchar(191);comment:参数键" json:"key"` // 参数键
Value *string `gorm:"column:value;type:varchar(191);comment:参数值" json:"value"` // 参数值
Desc *string `gorm:"column:desc;type:varchar(191);comment:参数说明" json:"desc"` // 参数说明
}
// TableName SysParam's table name
func (*SysParam) TableName() string {
return TableNameSysParam
}
@@ -0,0 +1,18 @@
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
package model
const TableNameSysUserAuthority = "sys_user_authority"
// SysUserAuthority mapped from table <sys_user_authority>
type SysUserAuthority struct {
SysUserID int64 `gorm:"column:sys_user_id;type:bigint(20) unsigned;primaryKey" json:"sys_user_id"`
SysAuthorityAuthorityID int64 `gorm:"column:sys_authority_authority_id;type:bigint(20) unsigned;primaryKey;comment:角色ID" json:"sys_authority_authority_id"` // 角色ID
}
// TableName SysUserAuthority's table name
func (*SysUserAuthority) TableName() string {
return TableNameSysUserAuthority
}
+36
View File
@@ -0,0 +1,36 @@
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
package model
import (
"time"
"gorm.io/gorm"
)
const TableNameSysUser = "sys_users"
// SysUser mapped from table <sys_users>
type SysUser struct {
ID int64 `gorm:"column:id;type:bigint(20) unsigned;primaryKey;autoIncrement:true" json:"id"`
CreatedAt *time.Time `gorm:"column:created_at;type:datetime(3)" json:"created_at"`
UpdatedAt *time.Time `gorm:"column:updated_at;type:datetime(3)" json:"updated_at"`
DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;type:datetime(3);index:idx_sys_users_deleted_at,priority:1" json:"deleted_at"`
UUID *string `gorm:"column:uuid;type:varchar(191);index:idx_sys_users_uuid,priority:1;comment:用户UUID" json:"uuid"` // 用户UUID
Username *string `gorm:"column:username;type:varchar(191);index:idx_sys_users_username,priority:1;comment:用户登录名" json:"username"` // 用户登录名
Password *string `gorm:"column:password;type:varchar(191);comment:用户登录密码" json:"password"` // 用户登录密码
NickName *string `gorm:"column:nick_name;type:varchar(191);default:系统用户;comment:用户昵称" json:"nick_name"` // 用户昵称
HeaderImg *string `gorm:"column:header_img;type:varchar(191);default:https://qmplusimg.henrongyi.top/gva_header.jpg;comment:用户头像" json:"header_img"` // 用户头像
AuthorityID *int64 `gorm:"column:authority_id;type:bigint(20) unsigned;default:888;comment:用户角色ID" json:"authority_id"` // 用户角色ID
Phone *string `gorm:"column:phone;type:varchar(191);comment:用户手机号" json:"phone"` // 用户手机号
Email *string `gorm:"column:email;type:varchar(191);comment:用户邮箱" json:"email"` // 用户邮箱
Enable *int64 `gorm:"column:enable;type:bigint(20);default:1;comment:用户是否被冻结 1正常 2冻结" json:"enable"` // 用户是否被冻结 1正常 2冻结
OriginSetting *string `gorm:"column:origin_setting;type:text;comment:配置" json:"origin_setting"` // 配置
}
// TableName SysUser's table name
func (*SysUser) TableName() string {
return TableNameSysUser
}
+30
View File
@@ -0,0 +1,30 @@
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
package model
import (
"time"
"gorm.io/gorm"
)
const TableNameSysVersion = "sys_versions"
// SysVersion mapped from table <sys_versions>
type SysVersion struct {
ID int64 `gorm:"column:id;type:bigint(20) unsigned;primaryKey;autoIncrement:true" json:"id"`
CreatedAt *time.Time `gorm:"column:created_at;type:datetime(3)" json:"created_at"`
UpdatedAt *time.Time `gorm:"column:updated_at;type:datetime(3)" json:"updated_at"`
DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;type:datetime(3);index:idx_sys_versions_deleted_at,priority:1" json:"deleted_at"`
VersionName *string `gorm:"column:version_name;type:varchar(255);comment:版本名称" json:"version_name"` // 版本名称
VersionCode *string `gorm:"column:version_code;type:varchar(100);comment:版本号" json:"version_code"` // 版本号
Description *string `gorm:"column:description;type:varchar(500);comment:版本描述" json:"description"` // 版本描述
VersionData *string `gorm:"column:version_data;type:text;comment:版本数据JSON" json:"version_data"` // 版本数据JSON
}
// TableName SysVersion's table name
func (*SysVersion) TableName() string {
return TableNameSysVersion
}