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 cn.stylefeng.workflow.api.pojo.InstanceVariable;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;

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

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

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

    @NotNull(message = "流程变量信息不能为空")
    @ChineseDescription("流程变量信息")
    private InstanceVariable instanceVariable;

}
