mirror of
https://gitee.com/XM-GO/PandaX.git
synced 2026-04-23 02:48:34 +08:00
[fix]代码生成器
This commit is contained in:
@@ -155,7 +155,7 @@ func (g *Generator) Generate() (entity.DevGenTable, error) {
|
||||
var column entity.DevGenTableColumn
|
||||
column.ColumnComment = dbColumn[y].ColumnComment
|
||||
column.ColumnName = dbColumn[y].ColumnName
|
||||
column.ColumnType = dbColumn[y].ColumnType
|
||||
column.ColumnType = dbColumn[y].DataType
|
||||
column.Sort = y + 1
|
||||
column.IsPk = "0"
|
||||
|
||||
@@ -361,7 +361,7 @@ func GenCode(tableId int64) {
|
||||
t1, err := template.ParseFiles("resource/template/go/entity.template")
|
||||
biz.ErrIsNil(err, "entity模版读取失败!")
|
||||
|
||||
t2, err := template.ParseFiles("resource/template/go/services.template")
|
||||
t2, err := template.ParseFiles("resource/template/go/service.template")
|
||||
biz.ErrIsNil(err, "service模版读取失败!")
|
||||
|
||||
t3, err := template.ParseFiles("resource/template/go/api.template")
|
||||
|
||||
Reference in New Issue
Block a user