From ee15329bd24b5f812dc106247c29973c3ce38b58 Mon Sep 17 00:00:00 2001 From: wenjianzhang Date: Tue, 11 May 2021 18:53:40 +0800 Subject: [PATCH] =?UTF-8?q?feat=E2=9C=A8=20systables=20=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E8=BF=81=E7=A7=BB=E6=A8=A1=E5=9D=97=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cmd/migrate/migration/models/systables.go | 27 ++++++++++++----------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/cmd/migrate/migration/models/systables.go b/cmd/migrate/migration/models/systables.go index d79993b..df2add3 100644 --- a/cmd/migrate/migration/models/systables.go +++ b/cmd/migrate/migration/models/systables.go @@ -1,16 +1,17 @@ package models 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"` //功能作者 + 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"` @@ -18,8 +19,8 @@ type SysTables struct { 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"` + 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"` @@ -33,4 +34,4 @@ type SysTables struct { func (SysTables) TableName() string { return "sys_tables" -} +} \ No newline at end of file