package com.yunzhupaas.flowable.service;

import com.yunzhupaas.base.service.SuperService;
import com.yunzhupaas.flowable.entity.LaunchUserEntity;

/**
 * 类的描述
 *
 * @author YUNZHUPAASYUNZHUPAAS开发组
 * @version 5.0.x
 * @since 2024/4/18 9:45
 */
public interface LaunchUserService extends SuperService<LaunchUserEntity> {

    /**
     * 根据任务id获取发起用户
     *
     * @param taskId 任务id
     */
    LaunchUserEntity getInfoByTask(String taskId);

    /**
     * 创建发起用户
     *
     * @param taskId 任务id
     * @param userId 用户id
     */
    void createLaunchUser(String taskId, String userId);

    /**
     * 删除发起用户
     *
     * @param taskId 任务主键
     */
    void delete(String taskId);
}
