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

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

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

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

}
