Files
qingcheng-houduan/src/main/resources/templates/dto/Addrequest.java.vm

30 lines
877 B
Plaintext
Raw Normal View History

2025-04-01 11:48:31 +08:00
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;
}