package com.softwarebr.nunu.json.api.go;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import java.util.List;

/**
 * @author ljr
 * @date 2020/2/27 10:54
 * @description:
 */
@Data
@ApiModel
public class ApiPolicyQueryParam {

    @ApiModelProperty(value = "扶持行业,方式,对象的标签集合")
    private List<LabelParam> labelParamList;

    @ApiModelProperty(value = "所在省份",  example = "1")
    private Long province;

    @ApiModelProperty(value = "所在城市",  example = "1")
    private Long city;

    @ApiModelProperty(value = "所在区域", example = "1")
    private Long area;

    @ApiModelProperty(value = "政策名称", example = "asldj")
    private String title;

    @ApiModelProperty(value = "页索引(1开始)", required = true, example = "1")
    @Range(min = 0, message = "pageIndex必须从1开始")
    private int pageIndex;

    @ApiModelProperty(value = "返回数量", required = true, example = "12")
    @Range(min = 1, max = 200, message = "pageSize最大不能超过200")
    private int pageSize;

}
