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();
@@ -29,7 +29,7 @@ export class PipelineEntity {
@Column({ comment: '启用/禁用', nullable: true, default: false })
disabled: boolean;
// cert_apply: 证书申请;cert_upload: 证书上传; backup: 备份; custom:自定义;
// cert_apply: 证书申请;cert_upload: 证书上传; backup: 备份; custom:自定义; template: 模板
@Column({ comment: '类型', nullable: true, default: 'cert' })
type: string;