增加表字段定义
This commit is contained in:
parent
860fe73996
commit
f49e97e6a1
|
@ -113,3 +113,13 @@ func ({DAO_RECEIVER} *{DATA_STRUCT_DAO}) Create(dbInstance *gorm.DB, data *{DATA
|
|||
}
|
||||
`
|
||||
)
|
||||
|
||||
// Field ...
|
||||
//
|
||||
// Author : go_developer@163.com<白茶清欢>
|
||||
//
|
||||
// Date : 20:05 2023/4/11
|
||||
type Field struct {
|
||||
Name string `json:"name"` // 字段名
|
||||
Type string `json:"type"` // 字段类型
|
||||
}
|
||||
|
|
|
@ -31,6 +31,7 @@ type BasicTableInfo struct {
|
|||
ModelStruct string
|
||||
PrimaryField string
|
||||
PrimaryFieldType string
|
||||
TableFieldList []Field // 表字段列表
|
||||
}
|
||||
|
||||
// ParseCreateTableSql 解析建表sql
|
||||
|
|
Loading…
Reference in New Issue