mirror of
https://github.com/flipped-aurora/gin-vue-admin.git
synced 2026-10-02 16:37:49 +00:00
* refactor: 移除冗余的工具名称和描述,简化代码生成器的文档 * Add Content-Type to S3 upload input Add Content-Type to S3 upload input * style: 优化仪表盘组件样式,调整各个子组件的布局和样式,提升视觉效果 * fix: 更新插件链接 * 优化角色配置-首页配置相关内容 * feat: 默认首页只允许选择已选中的菜单 * feat: 更新样式和优化组件,调整背景色及文本颜色 * feat: 清理无用的右侧边线 * feat: 增加了导入导出模板的自定义sql能力,方便灵活化扩展导入导出 * feat: 优化日志输出,增加插件字典定义 * feat: 增加插件字典定义前端相关 * feat: 增加插件自定义字典方法 * feat: 增加文件名和路径合法性检查 * feat: 修复暗黑模式和亮色模式logo路径定义 * feat: 移除未使用的defineEmits导入 * feat: 更新授权链接至新地址 * feat: 移除菜单组件背景色 * feat: 更新导出和导入SQL语句的示例占位符 * feat: 错误日志必须有数据库链接才会存储 * feat: 移除仪表板中公告卡片的高度限制 * feat: 添加插件列表接口,更新插件表格组件,移除不必要的注释 * feat: 更新版本号至v2.8.8,调整插件表格组件的请求参数 --------- Co-authored-by: piexlMax(奇淼 <qimiaojiangjizhao@gmail.com> Co-authored-by: Yexk_M <yexk@yexk.cn> Co-authored-by: Azir-11 <2075125282@qq.com>
47 lines
2.6 KiB
Go
47 lines
2.6 KiB
Go
// 自动生成模板SysExportTemplate
|
|
package system
|
|
|
|
import (
|
|
"github.com/flipped-aurora/gin-vue-admin/server/global"
|
|
)
|
|
|
|
// 导出模板 结构体 SysExportTemplate
|
|
type SysExportTemplate struct {
|
|
global.GVA_MODEL
|
|
DBName string `json:"dbName" form:"dbName" gorm:"column:db_name;comment:数据库名称;"` //数据库名称
|
|
Name string `json:"name" form:"name" gorm:"column:name;comment:模板名称;"` //模板名称
|
|
TableName string `json:"tableName" form:"tableName" gorm:"column:table_name;comment:表名称;"` //表名称
|
|
TemplateID string `json:"templateID" form:"templateID" gorm:"column:template_id;comment:模板标识;"` //模板标识
|
|
TemplateInfo string `json:"templateInfo" form:"templateInfo" gorm:"column:template_info;type:text;"` //模板信息
|
|
SQL string `json:"sql" form:"sql" gorm:"column:sql;type:text;comment:自定义导出SQL;"` //自定义导出SQL
|
|
ImportSQL string `json:"importSql" form:"importSql" gorm:"column:import_sql;type:text;comment:自定义导入SQL;"` //自定义导入SQL
|
|
Limit *int `json:"limit" form:"limit" gorm:"column:limit;comment:导出限制"`
|
|
Order string `json:"order" form:"order" gorm:"column:order;comment:排序"`
|
|
Conditions []Condition `json:"conditions" form:"conditions" gorm:"foreignKey:TemplateID;references:TemplateID;comment:条件"`
|
|
JoinTemplate []JoinTemplate `json:"joinTemplate" form:"joinTemplate" gorm:"foreignKey:TemplateID;references:TemplateID;comment:关联"`
|
|
}
|
|
|
|
type JoinTemplate struct {
|
|
global.GVA_MODEL
|
|
TemplateID string `json:"templateID" form:"templateID" gorm:"column:template_id;comment:模板标识"`
|
|
JOINS string `json:"joins" form:"joins" gorm:"column:joins;comment:关联"`
|
|
Table string `json:"table" form:"table" gorm:"column:table;comment:关联表"`
|
|
ON string `json:"on" form:"on" gorm:"column:on;comment:关联条件"`
|
|
}
|
|
|
|
func (JoinTemplate) TableName() string {
|
|
return "sys_export_template_join"
|
|
}
|
|
|
|
type Condition struct {
|
|
global.GVA_MODEL
|
|
TemplateID string `json:"templateID" form:"templateID" gorm:"column:template_id;comment:模板标识"`
|
|
From string `json:"from" form:"from" gorm:"column:from;comment:条件取的key"`
|
|
Column string `json:"column" form:"column" gorm:"column:column;comment:作为查询条件的字段"`
|
|
Operator string `json:"operator" form:"operator" gorm:"column:operator;comment:操作符"`
|
|
}
|
|
|
|
func (Condition) TableName() string {
|
|
return "sys_export_template_condition"
|
|
}
|