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 = {"id", "name", "categoryId", "price", "image", "period", "isShelves"}) public class ${entityName}UpdateRequest implements Serializable { /** * ${entityComment} ID */ @Schema(description = "${entityComment} ID", example = "1") private Long id; #foreach($field in ${table.fields}) #if(!$field.keyFlag && $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; }