调整模板格式
This commit is contained in:
parent
e399558fd1
commit
e8d19587f3
@ -179,15 +179,15 @@ func generateTableColumnDefined(modelStructName string, columnList []*sqlparser.
|
||||
structFieldCommentInstanceResult += "}"
|
||||
tableColumnFunction := `
|
||||
|
||||
// Columns 获取表字段定义
|
||||
func ({TABLE_FIRST} {MODEL_STRUCT_NAME}) Columns() *{COLUMN_DEFINED} {
|
||||
return {STRUCT_FIELD_DESC_DEFINED_RESULT}
|
||||
}
|
||||
// Columns 获取表字段定义
|
||||
func ({TABLE_FIRST} {MODEL_STRUCT_NAME}) Columns() *{COLUMN_DEFINED} {
|
||||
return {STRUCT_FIELD_DESC_DEFINED_RESULT}
|
||||
}
|
||||
|
||||
// ColumnComment 获取表字段描述
|
||||
func ({TABLE_FIRST} {MODEL_STRUCT_NAME}) ColumnComment() map[string]string {
|
||||
return {STRUCT_FIELD_COMMENT_DEFINED_RESULT}
|
||||
}
|
||||
// ColumnComment 获取表字段描述
|
||||
func ({TABLE_FIRST} {MODEL_STRUCT_NAME}) ColumnComment() map[string]string {
|
||||
return {STRUCT_FIELD_COMMENT_DEFINED_RESULT}
|
||||
}
|
||||
`
|
||||
dataMap := map[string]string{
|
||||
"{COLUMN_DEFINED}": columnDefineName,
|
||||
|
Loading…
Reference in New Issue
Block a user