package com.search.supersearch.model.dto;

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

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author 喜欢番茄火锅
 * @date 2023/9/14 14:22
 */
@Data
public class SearchDTO {

    @ApiModelProperty(value = "搜索系统类型", required = true)
    @NotNull
    private String searchType;
    @ApiModelProperty(value = "隐藏字段", required = true)
    @NotNull
    private List<String>  hideType;
    @ApiModelProperty(value = "搜索内容", required = true)
    @NotNull
    private String keyword;

    @ApiModelProperty(value = "页码", required = true)
    private Integer page;

    @ApiModelProperty(value = "大小", required = true)
    private Integer size;

    @ApiModelProperty(value = "0 精准搜索 1 模糊搜索 2 叠词搜索", required = true)
    @NotNull
    private Integer match;

    @ApiModelProperty(value = "0 优先时间 1 优先得分", required = true)
    @NotNull
    private Integer sort;

    @ApiModelProperty(value = "翻页字段")
    private List<String> searchAfter;

}
