mirror of
https://gitee.com/XM-GO/PandaX.git
synced 2026-04-26 15:19:36 +08:00
优化功能,通知功能,任务功能
This commit is contained in:
28
apps/develop/entity/dev_gen_table.go
Normal file
28
apps/develop/entity/dev_gen_table.go
Normal file
@@ -0,0 +1,28 @@
|
||||
package entity
|
||||
|
||||
import "pandax/base/model"
|
||||
|
||||
type DevGenTable struct {
|
||||
TableId int64 `gorm:"table_id,primary" json:"tableId"` // 编号
|
||||
TableName string `gorm:"table_name" json:"tableName"` // 表名称
|
||||
TableComment string `gorm:"table_comment" json:"tableComment"` // 表描述
|
||||
ClassName string `gorm:"class_name" json:"className"` // 实体类名称
|
||||
TplCategory string `gorm:"tpl_category" json:"tplCategory"` // 使用的模板(crud单表操作 tree树表操作)
|
||||
PackageName string `gorm:"package_name" json:"packageName"` // 生成包路径
|
||||
ModuleName string `gorm:"module_name" json:"moduleName"` // 生成模块名
|
||||
BusinessName string `gorm:"business_name" json:"businessName"` // 生成业务名
|
||||
FunctionName string `gorm:"function_name" json:"functionName"` // 生成功能名
|
||||
FunctionAuthor string `gorm:"function_author" json:"functionAuthor"` // 生成功能作者
|
||||
Options string `gorm:"options" json:"options"` // 其它生成选项
|
||||
Remark string `gorm:"remark" json:"remark"` // 备注
|
||||
Columns []DevGenTableColumn `gorm:"-" json:"columns"` // 字段信息
|
||||
PkColumn DevGenTableColumn `gorm:"-" json:"pkColumn"` // 主键列信息
|
||||
model.BaseModel
|
||||
}
|
||||
|
||||
type ToolsGenTableExtend struct {
|
||||
DevGenTable
|
||||
TreeCode string `gorm:"-" json:"treeCode"` // 树编码字段
|
||||
TreeParentCode string `gorm:"-" json:"treeParentCode"` // 树父编码字段
|
||||
TreeName string `gorm:"-" json:"treeName"` // 树名称字段
|
||||
}
|
||||
29
apps/develop/entity/dev_gen_table_column.go
Normal file
29
apps/develop/entity/dev_gen_table_column.go
Normal file
@@ -0,0 +1,29 @@
|
||||
package entity
|
||||
|
||||
type DevGenTableColumn struct {
|
||||
ColumnId int64 `gorm:"column_id,primary" json:"columnId"` // 编号
|
||||
TableId int64 `gorm:"table_id" json:"tableId"` // 归属表编号
|
||||
TableName string `gorm:"table_name" json:"tableName"`
|
||||
ColumnName string `gorm:"column_name" json:"columnName"` // 列名称
|
||||
ColumnComment string `gorm:"column_comment" json:"columnComment"` // 列描述
|
||||
ColumnType string `gorm:"column_type" json:"columnType"` // 列类型
|
||||
GoType string `gorm:"go_type" json:"goType"` // Go类型
|
||||
GoField string `gorm:"go_field" json:"goField"` // Go字段名
|
||||
HtmlField string `gorm:"html_field" json:"htmlField"` // html字段名
|
||||
IsPk string `gorm:"is_pk" json:"isPk"` // 是否主键(1是)
|
||||
IsIncrement string `gorm:"is_increment" json:"isIncrement"` // 是否自增(1是)
|
||||
IsRequired string `gorm:"is_required" json:"isRequired"` // 是否必填(1是)
|
||||
IsInsert string `gorm:"is_insert" json:"isInsert"` // 是否为插入字段(1是)
|
||||
IsEdit string `gorm:"is_edit" json:"isEdit"` // 是否编辑字段(1是)
|
||||
IsList string `gorm:"is_list" json:"isList"` // 是否列表字段(1是)
|
||||
IsQuery string `gorm:"is_query" json:"isQuery"` // 是否查询字段(1是)
|
||||
QueryType string `gorm:"query_type" json:"queryType"` // 查询方式(等于、不等于、大于、小于、范围)
|
||||
HtmlType string `gorm:"html_type" json:"htmlType"` // 显示类型(文本框、文本域、下拉框、复选框、单选框、日期控件)
|
||||
DictType string `gorm:"dict_type" json:"dictType"` // 字典类型
|
||||
Sort int `gorm:"sort" json:"sort"` // 排序
|
||||
LinkTableName string `gorm:"link_table_name" json:"linkTableName"` // 关联表名
|
||||
LinkTableClass string `gorm:"link_table_class" json:"linkTableClass"` // 关联表类名
|
||||
LinkTablePackage string `gorm:"link_table_package" json:"linkTablePackage"` // 关联表包名
|
||||
LinkLabelId string `gorm:"link_label_id" json:"linkLabelId"` // 关联表键名
|
||||
LinkLabelName string `gorm:"link_label_name" json:"linkLabelName"` // 关联表字段值
|
||||
}
|
||||
Reference in New Issue
Block a user