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 DelegateTaskByInstanceIdRequest extends BaseRequest {

    @NotNull(message = "流程实例id不能为空")
    @ChineseDescription("流程实例id")
    private Long instanceId;

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

    @ChineseDescription("转交给指定人")
    @NotNull(message = "转交给指定人不能为空")
    private Long userId;

}
