36 lines
1.0 KiB
Plaintext
36 lines
1.0 KiB
Plaintext
|
package ${parentPackage}.${dtoPackage};
|
||
|
|
||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||
|
import lombok.Data;
|
||
|
import java.io.Serial;
|
||
|
import java.io.Serializable;
|
||
|
import ${parentPackage}.common.PageRequest;
|
||
|
|
||
|
/**
|
||
|
* ${entityComment}查询请求体,继承自分页请求 PageRequest
|
||
|
*/
|
||
|
@Data
|
||
|
@Schema(description = "${entityComment}查询请求体", requiredProperties = {"current", "pageSize"})
|
||
|
public class ${entityName}QueryRequest extends PageRequest 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;
|
||
|
}
|