feat✨ 添加生成模块前端文件名

This commit is contained in:
wenjianzhang committed 2021-05-11 18:33:29 +08:00
1 parent 03eaad5b8b
commit 0317c3aaf5
1 file changed
+7 -5
+7 -5
View File
@@ -1,6 +1,7 @@
package tools package tools
import ( import (
common "go-admin/common/models"
"gorm.io/gorm" "gorm.io/gorm"
"strings" "strings"
@@ -14,7 +15,8 @@ type SysTables struct {
ClassName string `gorm:"size:255;" json:"className"` //类名 ClassName string `gorm:"size:255;" json:"className"` //类名
TplCategory string `gorm:"size:255;" json:"tplCategory"` // TplCategory string `gorm:"size:255;" json:"tplCategory"` //
PackageName string `gorm:"size:255;" json:"packageName"` //包名 PackageName string `gorm:"size:255;" json:"packageName"` //包名
ModuleName string `gorm:"size:255;" json:"moduleName"` //模块名 ModuleName string `gorm:"size:255;" json:"moduleName"` //go文件名
ModuleFrontName string `gorm:"size:255;comment:前端文件名;" json:"moduleFrontName"` //前端文件名
BusinessName string `gorm:"size:255;" json:"businessName"` // BusinessName string `gorm:"size:255;" json:"businessName"` //
FunctionName string `gorm:"size:255;" json:"functionName"` //功能名称 FunctionName string `gorm:"size:255;" json:"functionName"` //功能名称
FunctionAuthor string `gorm:"size:255;" json:"functionAuthor"` //功能作者 FunctionAuthor string `gorm:"size:255;" json:"functionAuthor"` //功能作者
@@ -25,8 +27,8 @@ type SysTables struct {
TreeCode string `gorm:"size:255;" json:"treeCode"` TreeCode string `gorm:"size:255;" json:"treeCode"`
TreeParentCode string `gorm:"size:255;" json:"treeParentCode"` TreeParentCode string `gorm:"size:255;" json:"treeParentCode"`
TreeName string `gorm:"size:255;" json:"treeName"` TreeName string `gorm:"size:255;" json:"treeName"`
Tree bool `gorm:"size:1;" json:"tree"` Tree bool `gorm:"size:1;default:0;" json:"tree"`
Crud bool `gorm:"size:1;" json:"crud"` Crud bool `gorm:"size:1;default:1;" json:"crud"`
Remark string `gorm:"size:255;" json:"remark"` Remark string `gorm:"size:255;" json:"remark"`
IsDataScope int `gorm:"size:1;" json:"isDataScope"` IsDataScope int `gorm:"size:1;" json:"isDataScope"`
IsActions int `gorm:"size:1;" json:"isActions"` IsActions int `gorm:"size:1;" json:"isActions"`
@@ -34,8 +36,8 @@ type SysTables struct {
IsLogicalDelete string `gorm:"size:1;" json:"isLogicalDelete"` IsLogicalDelete string `gorm:"size:1;" json:"isLogicalDelete"`
LogicalDelete bool `gorm:"size:1;" json:"logicalDelete"` LogicalDelete bool `gorm:"size:1;" json:"logicalDelete"`
LogicalDeleteColumn string `gorm:"size:128;" json:"logicalDeleteColumn"` LogicalDeleteColumn string `gorm:"size:128;" json:"logicalDeleteColumn"`
CreateBy string `gorm:"size:128;" json:"createBy"` common.ModelTime
UpdateBy string `gorm:"size:128;" json:"updateBy"` common.ControlBy
DataScope string `gorm:"-" json:"dataScope"` DataScope string `gorm:"-" json:"dataScope"`
Params Params `gorm:"-" json:"params"` Params Params `gorm:"-" json:"params"`
Columns []SysColumns `gorm:"-" json:"columns"` Columns []SysColumns `gorm:"-" json:"columns"`