package com.njcn.gather.aireport.reportapproval.pojo.param;

import com.njcn.web.pojo.param.BaseParam;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

public class ReportApprovalParam {

    @Data
    public static class AuditParam {
        @ApiModelProperty("报告类型")
        @NotBlank(message = "报告类型不能为空")
        private String reportType;

        @ApiModelProperty("报告ID")
        @NotBlank(message = "报告ID不能为空")
        private String reportId;

        @ApiModelProperty("审批原因")
        @NotBlank(message = "审批原因不能为空")
        @Size(max = 128, message = "审批原因不能超过128个字符")
        private String approvalReason;
    }

    @Data
    @EqualsAndHashCode(callSuper = true)
    public static class PendingQueryParam extends BaseParam {
        @ApiModelProperty("报告类型")
        private String reportType;
    }

    @Data
    @EqualsAndHashCode(callSuper = true)
    public static class LogQueryParam extends BaseParam {
        @ApiModelProperty("报告类型")
        private String reportType;
    }
}
