package com.writeoff.module.audit.dto;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;
import java.util.List;

public class BatchAuditActionRequest {
    @NotBlank(message = "幂等键不能为空")
    private String idempotencyKey;
    @NotEmpty(message = "任务ID列表不能为空")
    @Size(max = 50, message = "单次批量操作最多50条")
    private List<Long> taskIds;
    @NotBlank(message = "审核意见不能为空")
    private String opinion;

    public String getIdempotencyKey() {
        return idempotencyKey;
    }

    public void setIdempotencyKey(String idempotencyKey) {
        this.idempotencyKey = idempotencyKey;
    }

    public List<Long> getTaskIds() {
        return taskIds;
    }

    public void setTaskIds(List<Long> taskIds) {
        this.taskIds = taskIds;
    }

    public String getOpinion() {
        return opinion;
    }

    public void setOpinion(String opinion) {
        this.opinion = opinion;
    }
}
