feat✨ 添加生成模块前端文件名
This commit is contained in:
1 parent
03eaad5b8b
commit
0317c3aaf5
1 file changed
+33
-31
@@ -1,6 +1,7 @@
|
|||||||
package tools
|
package tools
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
common "go-admin/common/models"
|
||||||
"gorm.io/gorm"
|
"gorm.io/gorm"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
@@ -8,37 +9,38 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type SysTables struct {
|
type SysTables struct {
|
||||||
TableId int `gorm:"primaryKey;autoIncrement" json:"tableId"` //表编码
|
TableId int `gorm:"primaryKey;autoIncrement" json:"tableId"` //表编码
|
||||||
TBName string `gorm:"column:table_name;size:255;" json:"tableName"` //表名称
|
TBName string `gorm:"column:table_name;size:255;" json:"tableName"` //表名称
|
||||||
TableComment string `gorm:"size:255;" json:"tableComment"` //表备注
|
TableComment string `gorm:"size:255;" json:"tableComment"` //表备注
|
||||||
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文件名
|
||||||
BusinessName string `gorm:"size:255;" json:"businessName"` //
|
ModuleFrontName string `gorm:"size:255;comment:前端文件名;" json:"moduleFrontName"` //前端文件名
|
||||||
FunctionName string `gorm:"size:255;" json:"functionName"` //功能名称
|
BusinessName string `gorm:"size:255;" json:"businessName"` //
|
||||||
FunctionAuthor string `gorm:"size:255;" json:"functionAuthor"` //功能作者
|
FunctionName string `gorm:"size:255;" json:"functionName"` //功能名称
|
||||||
PkColumn string `gorm:"size:255;" json:"pkColumn"`
|
FunctionAuthor string `gorm:"size:255;" json:"functionAuthor"` //功能作者
|
||||||
PkGoField string `gorm:"size:255;" json:"pkGoField"`
|
PkColumn string `gorm:"size:255;" json:"pkColumn"`
|
||||||
PkJsonField string `gorm:"size:255;" json:"pkJsonField"`
|
PkGoField string `gorm:"size:255;" json:"pkGoField"`
|
||||||
Options string `gorm:"size:255;" json:"options"`
|
PkJsonField string `gorm:"size:255;" json:"pkJsonField"`
|
||||||
TreeCode string `gorm:"size:255;" json:"treeCode"`
|
Options string `gorm:"size:255;" json:"options"`
|
||||||
TreeParentCode string `gorm:"size:255;" json:"treeParentCode"`
|
TreeCode string `gorm:"size:255;" json:"treeCode"`
|
||||||
TreeName string `gorm:"size:255;" json:"treeName"`
|
TreeParentCode string `gorm:"size:255;" json:"treeParentCode"`
|
||||||
Tree bool `gorm:"size:1;" json:"tree"`
|
TreeName string `gorm:"size:255;" json:"treeName"`
|
||||||
Crud bool `gorm:"size:1;" json:"crud"`
|
Tree bool `gorm:"size:1;default:0;" json:"tree"`
|
||||||
Remark string `gorm:"size:255;" json:"remark"`
|
Crud bool `gorm:"size:1;default:1;" json:"crud"`
|
||||||
IsDataScope int `gorm:"size:1;" json:"isDataScope"`
|
Remark string `gorm:"size:255;" json:"remark"`
|
||||||
IsActions int `gorm:"size:1;" json:"isActions"`
|
IsDataScope int `gorm:"size:1;" json:"isDataScope"`
|
||||||
IsAuth int `gorm:"size:1;" json:"isAuth"`
|
IsActions int `gorm:"size:1;" json:"isActions"`
|
||||||
IsLogicalDelete string `gorm:"size:1;" json:"isLogicalDelete"`
|
IsAuth int `gorm:"size:1;" json:"isAuth"`
|
||||||
LogicalDelete bool `gorm:"size:1;" json:"logicalDelete"`
|
IsLogicalDelete string `gorm:"size:1;" json:"isLogicalDelete"`
|
||||||
LogicalDeleteColumn string `gorm:"size:128;" json:"logicalDeleteColumn"`
|
LogicalDelete bool `gorm:"size:1;" json:"logicalDelete"`
|
||||||
CreateBy string `gorm:"size:128;" json:"createBy"`
|
LogicalDeleteColumn string `gorm:"size:128;" json:"logicalDeleteColumn"`
|
||||||
UpdateBy string `gorm:"size:128;" json:"updateBy"`
|
common.ModelTime
|
||||||
DataScope string `gorm:"-" json:"dataScope"`
|
common.ControlBy
|
||||||
Params Params `gorm:"-" json:"params"`
|
DataScope string `gorm:"-" json:"dataScope"`
|
||||||
Columns []SysColumns `gorm:"-" json:"columns"`
|
Params Params `gorm:"-" json:"params"`
|
||||||
|
Columns []SysColumns `gorm:"-" json:"columns"`
|
||||||
|
|
||||||
models.BaseModel
|
models.BaseModel
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user