feat(studio.service): 添加了任务的接口类

This commit is contained in:
李东云
2022-08-30 18:53:09 +08:00
parent 2f99ce2461
commit da07463e5d

View File

@@ -0,0 +1,42 @@
<?php
/**
* TaskServiceInterface.php@HDK
*
* @author 李东云 <Dongyun.Li@LuxCreo.Ai>
* Powered by PhpStorm
* Created on 2022/8/30
*/
namespace Singularity\HDK\Studio\Services;
/**
* Singularity\HDK\Studio\Services\TaskServiceInterface@HDK
*
* @author 李东云 <Dongyun.Li@LuxCreo.Ai>
* Powered by PhpStorm
* Created on 2022/8/30
*/
interface TaskServiceInterface
{
public function createTask(
string $fileId,
string $workspaceId,
int $priority = 1,
?string $userId = null
);
/**
* 任务完成时的操作
*
* @param string $taskId
* @param int $taskTabId
* @param array $output
*
* @return bool
*/
public function whenTaskReady(
string $taskId,
int $taskTabId,
array $output
): bool;
}