feat: let model customizable (#1738)
This commit is contained in:
8
tools/goctl/model/sql/template/tablename.go
Normal file
8
tools/goctl/model/sql/template/tablename.go
Normal file
@@ -0,0 +1,8 @@
|
||||
package template
|
||||
|
||||
// TableName defines a template that generate the tableName method.
|
||||
const TableName = `
|
||||
func (m *default{{.upperStartCamelObject}}Model) tableName() string {
|
||||
return m.table
|
||||
}
|
||||
`
|
||||
Reference in New Issue
Block a user