fix: 更新stopWorkspace方法的返回类型为Result

This commit is contained in:
2026-02-09 19:55:02 +08:00
parent 13401d9aa0
commit ea137eb70b

View File

@@ -62,7 +62,7 @@ export class Workspace extends CNBCore {
* 停止我的云原生开发环境
* @param params 停止参数pipelineId 和 sn 二选一,优先使用 pipelineId
*/
async stopWorkspace(params: { pipelineId?: string; sn?: string }): Promise<{ buildLogUrl: string; message: string; sn: string }> {
async stopWorkspace(params: { pipelineId?: string; sn?: string }): Promise<Result<{ buildLogUrl: string; message: string; sn: string }>> {
const data: { pipelineId?: string; sn?: string } = {};
if (params.pipelineId) {