package cn.fateverse.query.entity.dto;

import cn.fateverse.common.decrypt.annotation.EncryptField;
import lombok.Data;

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

/**
 * @author Clay
 * @date 2023-07-22
 */
@Data
public class SearchInfo {

    @NotNull(message = "查询条件不为空")
    private List<UniConDto> list;

    @NotNull(message = "查询id不能为空")
    @EncryptField
    private String queryId;

    public Long getLongQueryId() {
        return Long.parseLong(queryId);
    }
}
