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

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

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

    @ChineseDescription("任务id")
    private Long taskId;

    @ChineseDescription("流程实例id")
    private Long instanceId;

    @ChineseDescription("查询条件枚举")
    @NotNull(message = "条件类型不能为空")
    private TaskConditionEnum taskCondition;

}
