package com.zhiqiyun.open.mvc.params.statistics;

import com.zhiqiyun.open.core.enmus.ComplaintState;
import com.zhiqiyun.open.core.models.RangeDate;
import com.zhiqiyun.open.mvc.params.QueryPageParams;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

/**
 * @author jtoms
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class QueryComplaintInfoParams extends QueryPageParams {
    private String title;
    private String category;
    private String channel;

    private ComplaintState state;
    private RangeDate createdTime;
    private RangeDate processedTime;

    public void setCreatedTime(List<String> createdTime) {
        this.createdTime = RangeDate.build(createdTime);
    }

    public void setProcessedTime(List<String> processedTime) {
        this.processedTime = RangeDate.build(processedTime);
    }

}
