# ItticketQuery.java

    package cloud.wconnect.it.pojo.query.itrequest;

    import lombok.Data;
    import org.hibernate.validator.constraints.Range;

    import jakarta.validation.constraints.NotBlank;
    import jakarta.validation.constraints.NotNull;
    import java.util.List;

    /**
     * Query: Itticket
     *
     * @author yyt
     * 2023/3/25
     */
    @Data
    public class ItticketQuery {

        /**
         * 资产标识
         */
        @NotBlank(message = "the property must not be blank")
        private String property;

        /**
         * 分类 id
         */
        private Integer category;

        /**
         * priority
         */
        private Integer priority;

        /**
         * 状态 (0:Open; 1:Closed; 2:In Progress)
         */
        private List<Integer> status;

        /**
         * page
         */
        @NotNull(message = "the page must not be null")
        private Integer page;

        /**
         * size
         */
        @NotNull(message = "the size must not be null")
        private Integer size;

        /**
         * 排序方式（1：closedTime）
         */
        @Range(min = 1, max = 1, message = "the status must in [1：ClosedTime]")
        private Integer sortWay;

        /**
         * size
         */
        @Range(min = 1, max = 2, message = "the status must in [1:Asc; 2:Desc]")
        private Integer sort;

        public static final int ASC = 1;

        public static final int DESC = 2;

    }