feat: 支持模版创建流水线

This commit is contained in:
xiaojunnuo
2025-06-23 18:20:49 +08:00
parent 8bb1ed3e95
commit 2559f0e822
9 changed files with 258 additions and 110 deletions
@@ -53,6 +53,13 @@ export class PipelineController extends CrudController<PipelineService> {
return this.ok(pageRet);
}
@Post('/getSimpleByIds', { summary: Constants.per.authOnly })
async getSimpleById(@Body(ALL) body) {
const ret = await this.getService().getSimplePipelines(body.ids,this.getUserId() );
return this.ok(ret);
}
@Post('/add', { summary: Constants.per.authOnly })
async add(@Body(ALL) bean: PipelineEntity) {
bean.userId = this.getUserId();