mirror of
https://github.com/certd/certd.git
synced 2026-04-16 05:50:50 +08:00
chore: 模版创建流水线
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user