文件模块初步完成
This commit is contained in:
@ -16,21 +16,17 @@ import com.greenorange.promotion.common.PageRequest;
|
||||
@Schema(description = "${entityComment}查询请求体", requiredProperties = {"current", "pageSize"})
|
||||
public class ${entityName}QueryRequest extends PageRequest implements Serializable {
|
||||
|
||||
/**
|
||||
* ${entityComment} ID
|
||||
*/
|
||||
@Schema(description = "${entityComment} ID", example = "1")
|
||||
@Min(value = 1L, message = "${entityComment} ID不能小于1")
|
||||
private Long id;
|
||||
|
||||
#foreach($field in ${table.fields})
|
||||
#if(!$field.keyFlag && $field.propertyName != "createTime" && $field.propertyName != "updateTime" && $field.propertyName != "isDelete")
|
||||
#if($field.propertyName != "createTime" && $field.propertyName != "updateTime" && $field.propertyName != "isDelete")
|
||||
/**
|
||||
* ${field.comment}
|
||||
*/
|
||||
#if($field.propertyType == "String")
|
||||
@NotBlank(message = "${field.comment}不能为空")
|
||||
#end
|
||||
#if($field.propertyType == "Long")
|
||||
@Min(value = 1L, message = "${field.comment} ID不能小于1")
|
||||
#end
|
||||
@Schema(description = "${field.comment}", example = "")
|
||||
private ${field.propertyType} ${field.propertyName};
|
||||
|
||||
|
Reference in New Issue
Block a user