package cn.stylefeng.workflow.instance.modular.task.pojo.operate;

import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
import cn.stylefeng.roses.kernel.rule.pojo.request.BaseRequest;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;
import java.util.Map;

@EqualsAndHashCode(callSuper = true)
@Data
public class AgreeTaskSimpleRequest extends BaseRequest {

    @NotNull(message = "任务id不能为空")
    @ChineseDescription("任务id")
    private Long taskId;

    @ChineseDescription("审批意见内容")
    @NotBlank(message = "审批意见内容不能为空")
    private String suggestContent;

    @ChineseDescription("指定节点的审批人列表，key是节点id，value是节点下的审批人id列表")
    private Map<Long, List<Long>> pointNodeApproverUserId;

}
