🎨 改进结构和代码格式。 优化代码生成格式

This commit is contained in:
冷冷 committed 2019-06-28 15:53:09 +08:00
1 parent e45428bc6c
commit ac11fb5b1e
4 files changed
+22 -18

No files matched your search

@@ -42,15 +42,14 @@ import java.time.LocalDateTime;
public class ${className} extends Model<${className}> {
private static final long serialVersionUID = 1L;
#foreach ($column in $columns)
/**
* $column.comments
*/
#if($column.columnName == $pk.columnName)
@TableId
#end
@ApiModelProperty(value="$column.comments"#if($column.nullable),required=$column.nullable#end#if($column.hidden),hidden=$column.hidden#end)
private $column.attrType $column.lowerAttrName;
#end
#foreach ($column in $columns)
/**
* $column.comments
*/
#if($column.columnName == $pk.columnName)
@TableId
#end
@ApiModelProperty(value="$column.comments"#if($column.hidden),hidden=$column.hidden#end)
private $column.attrType $column.lowerAttrName;
#end
}