feat: 优化结构体自动生成
This commit is contained in:
@ -18,7 +18,7 @@ import (
|
|||||||
|
|
||||||
const (
|
const (
|
||||||
// CreateSQLColumnTPL 每个字段的模版
|
// CreateSQLColumnTPL 每个字段的模版
|
||||||
CreateSQLColumnTPL = " {FIELD} {TYPE} `json:\"{JSON_TAG}\" gorm:\"column:{COLUMN};default:{DEFAULT_VALUE};{NOT_NULL}\"` // {COMMENT}"
|
CreateSQLColumnTPL = " {FIELD} {TYPE} `json:\"{JSON_TAG}\" gorm:\"column:{COLUMN};default:{DEFAULT_VALUE};{NOT_NULL}\" dc:\"{COMMENT}\"`"
|
||||||
// TableColumnTpl 每个字段的模版
|
// TableColumnTpl 每个字段的模版
|
||||||
TableColumnTpl = " {FIELD} string `json:\"{JSON_TAG}\"`"
|
TableColumnTpl = " {FIELD} string `json:\"{JSON_TAG}\"`"
|
||||||
// TableColumnDescTpl 字段描述
|
// TableColumnDescTpl 字段描述
|
||||||
|
Reference in New Issue
Block a user