chore: 模版创建流水线

This commit is contained in:
xiaojunnuo
2025-06-25 18:18:57 +08:00
parent 9296ba7492
commit 29906ec057
11 changed files with 127 additions and 38 deletions

View File

@@ -74,4 +74,10 @@ export class TemplateController extends CrudController<TemplateService> {
const detail = await this.service.detail(id, this.getUserId());
return this.ok(detail);
}
@Post('/createPipelineByTemplate', { summary: Constants.per.authOnly })
async createPipelineByTemplate(@Body(ALL) body: any) {
body.userId = this.getUserId();
const res = await this.service.createPipelineByTemplate(body);
return this.ok(res);
}
}