tpl format
This commit is contained in:
parent
e8d19587f3
commit
b5766839fa
@ -171,12 +171,12 @@ func generateTableColumnDefined(modelStructName string, columnList []*sqlparser.
|
|||||||
structFieldCommentDefine = strings.ReplaceAll(structFieldCommentDefine, k, v)
|
structFieldCommentDefine = strings.ReplaceAll(structFieldCommentDefine, k, v)
|
||||||
}
|
}
|
||||||
structFieldResult += structFieldDefine + "\n"
|
structFieldResult += structFieldDefine + "\n"
|
||||||
structFieldDescInstanceResult += structFieldDescDefine + ",\n"
|
structFieldDescInstanceResult += " " + structFieldDescDefine + ",\n"
|
||||||
structFieldCommentInstanceResult += structFieldCommentDefine + ",\n"
|
structFieldCommentInstanceResult += " " + structFieldCommentDefine + ",\n"
|
||||||
}
|
}
|
||||||
structFieldResult += "}"
|
structFieldResult += "}"
|
||||||
structFieldDescInstanceResult += "}"
|
structFieldDescInstanceResult += " }"
|
||||||
structFieldCommentInstanceResult += "}"
|
structFieldCommentInstanceResult += " }"
|
||||||
tableColumnFunction := `
|
tableColumnFunction := `
|
||||||
|
|
||||||
// Columns 获取表字段定义
|
// Columns 获取表字段定义
|
||||||
|
Loading…
Reference in New Issue
Block a user