@@ -407,11 +407,11 @@ import (
407407 "github.com/GoAdminGroup/go-admin/template/types/form"
408408)
409409
410- func Get` + strings .Title (tableCamel ) + `TableName () table.Table {
410+ func Get` + strings .Title (tableCamel ) + `Table () table.Table {
411411
412- ` + tableCamel + `TableName := ` + newTable + `
412+ ` + tableCamel + `Table := ` + newTable + `
413413
414- info := ` + tableCamel + `TableName .GetInfo()
414+ info := ` + tableCamel + `Table .GetInfo()
415415
416416 `
417417
@@ -432,7 +432,7 @@ func Get` + strings.Title(tableCamel) + `TableName() table.Table {
432432 content += `
433433 info.SetTable("` + table + `").SetTitle("` + strings .Title (table ) + `").SetDescription("` + strings .Title (table ) + `")
434434
435- formList := ` + tableCamel + `TableName .GetForm()
435+ formList := ` + tableCamel + `Table .GetForm()
436436
437437 `
438438
@@ -455,7 +455,7 @@ func Get` + strings.Title(tableCamel) + `TableName() table.Table {
455455 content += `
456456 formList.SetTable("` + table + `").SetTitle("` + strings .Title (table ) + `").SetDescription("` + strings .Title (table ) + `")
457457
458- return ` + tableCamel + `TableName
458+ return ` + tableCamel + `Table
459459}`
460460
461461 err := ioutil .WriteFile (outputPath + "/" + table + ".go" , []byte (content ), 0644 )
@@ -469,7 +469,7 @@ func generateTables(outputPath string, tables []string, packageName string) {
469469
470470 for i := 0 ; i < len (tables ); i ++ {
471471 tableStr += `
472- "` + tables [i ] + `": Get` + strings .Title (camelcase (tables [i ])) + `TableName ,`
472+ "` + tables [i ] + `": Get` + strings .Title (camelcase (tables [i ])) + `Table ,`
473473 commentStr += `// "` + tables [i ] + `" => http://localhost:9033/admin/info/` + tables [i ] + `
474474`
475475 }
@@ -479,7 +479,7 @@ func generateTables(outputPath string, tables []string, packageName string) {
479479import "github.com/GoAdminGroup/go-admin/plugins/admin/modules/table"
480480
481481// The key of Generators is the prefix of table info url.
482- // The corresponding value is the Form and TableName data.
482+ // The corresponding value is the Form and Table data.
483483//
484484// http://{{config.Domain}}:{{Port}}/{{config.Prefix}}/info/{{key}}
485485//
0 commit comments