17 lines
554 B
Plaintext
17 lines
554 B
Plaintext
package mdb
|
|
|
|
// ${businessName} ${functionName}
|
|
type ${capClassName} struct {
|
|
#foreach ($column in $columns)
|
|
#if($column.columnName != 'id' && $column.columnName != 'created_at' && $column.columnName != 'updated_at' && $column.columnName != 'deleted_at' )
|
|
$column.capJavaField $column.goType `gorm:"column:$column.columnName" json:"$column.columnName"` // $column.columnComment
|
|
#end
|
|
#end
|
|
BaseModel
|
|
}
|
|
|
|
// TableName sets the insert table name for this struct type
|
|
func (w *${capClassName}) TableName() string {
|
|
return "${tableName}"
|
|
}
|