package ${parentPackage}.${dtoPackage}; import io.swagger.v3.oas.annotations.media.Schema; import lombok.Data; import java.io.Serial; import java.io.Serializable; /** * ${entityComment}添加请求体 */ @Data @Schema(description = "${entityComment}添加请求体", requiredProperties = {"name", "categoryId", "price", "image", "period", "isShelves"}) public class ${entityName}AddRequest implements Serializable { #foreach($field in ${table.fields}) #if(!$field.keyFlag && $field.propertyName != "id" && $field.propertyName != "createTime" && $field.propertyName != "updateTime" && $field.propertyName != "isDelete") /** * ${field.comment} */ @Schema(description = "${field.comment}", example = "${field.example}") private ${field.propertyType} ${field.propertyName}; #end #end @Serial private static final long serialVersionUID = 1L; }