mirror of
http://124.126.16.154:8888/singularity/HyperfDevelopmentKit.git
synced 2026-01-15 00:35:08 +08:00
feat(studio.service): 添加了任务的接口类
This commit is contained in:
42
src/Studio/Services/TaskServiceInterface.php
Normal file
42
src/Studio/Services/TaskServiceInterface.php
Normal 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;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user