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;

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

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

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

    @ChineseDescription("退回类型：1-发起节点，2-指定节点")
    @NotNull(message = "退回类型不能为空")
    private Integer backType;

    @ChineseDescription("退回到哪个节点，流程设计节点")
    private Long backNodeId;

}
