package com.microservices.cms.search.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 文章搜索请求对象
 *
 * @author microservices
 */
@Data
@ApiModel("文章搜索请求对象")
public class DocSearchRequest implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 搜索关键词
     */
    @ApiModelProperty(value = "搜索关键词", required = true)
    private String keyword;

    /**
     * 专区ID
     */
    @ApiModelProperty(value = "专区ID")
    private Long zoneId;

    /**
     * 页码
     */
    @ApiModelProperty(value = "页码")
    private Integer pageNum = 1;

    /**
     * 每页数量
     */
    @ApiModelProperty(value = "每页数量")
    private Integer pageSize = 20;
}
