文件模块初步完成

This commit is contained in:
2025-05-06 19:15:01 +08:00
parent 2eb5ee1207
commit e1458e937b
21 changed files with 763 additions and 24 deletions

View File

@ -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};