提交 | 用户 | 时间
|
71e81e
|
1 |
package ${package.EntitySpecParams}; |
懒 |
2 |
|
|
3 |
import lombok.Data; |
|
4 |
import cn.stylefeng.roses.kernel.model.validator.BaseValidatingParam; |
|
5 |
import java.util.Date; |
|
6 |
import java.io.Serializable; |
|
7 |
import java.math.BigDecimal; |
|
8 |
import io.swagger.annotations.ApiModel; |
|
9 |
import io.swagger.annotations.ApiModelProperty; |
|
10 |
|
|
11 |
/** |
|
12 |
* <p> |
|
13 |
* $!{table.comment} |
|
14 |
* </p> |
|
15 |
* |
|
16 |
* @author ${author} |
|
17 |
* @since ${date} |
|
18 |
*/ |
|
19 |
@Data |
|
20 |
@ApiModel |
|
21 |
public class ${entity}Param implements Serializable, BaseValidatingParam { |
|
22 |
|
|
23 |
private static final long serialVersionUID = 1L; |
|
24 |
|
|
25 |
#foreach($field in ${table.fields}) |
|
26 |
|
|
27 |
#if("$!field.comment" != "") |
|
28 |
/** |
|
29 |
* ${field.comment} |
|
30 |
*/ |
|
31 |
#end |
|
32 |
#if("$!field.propertyName" != "createTime" && "$!field.propertyName" != "createUser" && "$!field.propertyName" != "updateTime" && "$!field.propertyName" != "updateUser" && "$!field.propertyName" != "delFlag" && "$!field.propertyName" != "version") |
|
33 |
@ApiModelProperty("$!field.comment") |
|
34 |
#else |
|
35 |
@ApiModelProperty(hidden = true) |
|
36 |
#end |
|
37 |
private ${field.propertyType} ${field.propertyName}; |
|
38 |
#end |
|
39 |
|
|
40 |
@Override |
|
41 |
public String checkParam() { |
|
42 |
return null; |
|
43 |
} |
|
44 |
|
|
45 |
} |