111
This commit is contained in:
1 parent
81eca8933a
commit
345f906c35
540 files changed
+494222
-90
No files matched your search
@@ -0,0 +1,16 @@
|
||||
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}"
|
||||
}
|
||||
Reference in new issue
Block a user