From 0317c3aaf519aa9012af4cad16f864bca3eaf133 Mon Sep 17 00:00:00 2001 From: wenjianzhang Date: Tue, 11 May 2021 18:33:29 +0800 Subject: [PATCH] =?UTF-8?q?feat=E2=9C=A8=20=E6=B7=BB=E5=8A=A0=E7=94=9F?= =?UTF-8?q?=E6=88=90=E6=A8=A1=E5=9D=97=E5=89=8D=E7=AB=AF=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/admin/models/tools/systables.go | 64 +++++++++++++++-------------- 1 file changed, 33 insertions(+), 31 deletions(-) diff --git a/app/admin/models/tools/systables.go b/app/admin/models/tools/systables.go index 6151dd74..60092d6c 100644 --- a/app/admin/models/tools/systables.go +++ b/app/admin/models/tools/systables.go @@ -1,6 +1,7 @@ package tools import ( + common "go-admin/common/models" "gorm.io/gorm" "strings" @@ -8,37 +9,38 @@ import ( ) type SysTables struct { - TableId int `gorm:"primaryKey;autoIncrement" json:"tableId"` //表编码 - TBName string `gorm:"column:table_name;size:255;" json:"tableName"` //表名称 - TableComment string `gorm:"size:255;" json:"tableComment"` //表备注 - ClassName string `gorm:"size:255;" json:"className"` //类名 - TplCategory string `gorm:"size:255;" json:"tplCategory"` // - PackageName string `gorm:"size:255;" json:"packageName"` //包名 - ModuleName string `gorm:"size:255;" json:"moduleName"` //模块名 - BusinessName string `gorm:"size:255;" json:"businessName"` // - FunctionName string `gorm:"size:255;" json:"functionName"` //功能名称 - FunctionAuthor string `gorm:"size:255;" json:"functionAuthor"` //功能作者 - PkColumn string `gorm:"size:255;" json:"pkColumn"` - PkGoField string `gorm:"size:255;" json:"pkGoField"` - PkJsonField string `gorm:"size:255;" json:"pkJsonField"` - Options string `gorm:"size:255;" json:"options"` - TreeCode string `gorm:"size:255;" json:"treeCode"` - TreeParentCode string `gorm:"size:255;" json:"treeParentCode"` - TreeName string `gorm:"size:255;" json:"treeName"` - Tree bool `gorm:"size:1;" json:"tree"` - Crud bool `gorm:"size:1;" json:"crud"` - Remark string `gorm:"size:255;" json:"remark"` - IsDataScope int `gorm:"size:1;" json:"isDataScope"` - IsActions int `gorm:"size:1;" json:"isActions"` - IsAuth int `gorm:"size:1;" json:"isAuth"` - IsLogicalDelete string `gorm:"size:1;" json:"isLogicalDelete"` - LogicalDelete bool `gorm:"size:1;" json:"logicalDelete"` - LogicalDeleteColumn string `gorm:"size:128;" json:"logicalDeleteColumn"` - CreateBy string `gorm:"size:128;" json:"createBy"` - UpdateBy string `gorm:"size:128;" json:"updateBy"` - DataScope string `gorm:"-" json:"dataScope"` - Params Params `gorm:"-" json:"params"` - Columns []SysColumns `gorm:"-" json:"columns"` + TableId int `gorm:"primaryKey;autoIncrement" json:"tableId"` //表编码 + TBName string `gorm:"column:table_name;size:255;" json:"tableName"` //表名称 + TableComment string `gorm:"size:255;" json:"tableComment"` //表备注 + ClassName string `gorm:"size:255;" json:"className"` //类名 + TplCategory string `gorm:"size:255;" json:"tplCategory"` // + PackageName string `gorm:"size:255;" json:"packageName"` //包名 + ModuleName string `gorm:"size:255;" json:"moduleName"` //go文件名 + ModuleFrontName string `gorm:"size:255;comment:前端文件名;" json:"moduleFrontName"` //前端文件名 + BusinessName string `gorm:"size:255;" json:"businessName"` // + FunctionName string `gorm:"size:255;" json:"functionName"` //功能名称 + FunctionAuthor string `gorm:"size:255;" json:"functionAuthor"` //功能作者 + PkColumn string `gorm:"size:255;" json:"pkColumn"` + PkGoField string `gorm:"size:255;" json:"pkGoField"` + PkJsonField string `gorm:"size:255;" json:"pkJsonField"` + Options string `gorm:"size:255;" json:"options"` + TreeCode string `gorm:"size:255;" json:"treeCode"` + TreeParentCode string `gorm:"size:255;" json:"treeParentCode"` + TreeName string `gorm:"size:255;" json:"treeName"` + Tree bool `gorm:"size:1;default:0;" json:"tree"` + Crud bool `gorm:"size:1;default:1;" json:"crud"` + Remark string `gorm:"size:255;" json:"remark"` + IsDataScope int `gorm:"size:1;" json:"isDataScope"` + IsActions int `gorm:"size:1;" json:"isActions"` + IsAuth int `gorm:"size:1;" json:"isAuth"` + IsLogicalDelete string `gorm:"size:1;" json:"isLogicalDelete"` + LogicalDelete bool `gorm:"size:1;" json:"logicalDelete"` + LogicalDeleteColumn string `gorm:"size:128;" json:"logicalDeleteColumn"` + common.ModelTime + common.ControlBy + DataScope string `gorm:"-" json:"dataScope"` + Params Params `gorm:"-" json:"params"` + Columns []SysColumns `gorm:"-" json:"columns"` models.BaseModel }