perf: 流水线增加上传证书快捷方式

This commit is contained in:
xiaojunnuo
2025-03-21 01:02:57 +08:00
parent 8b0daf7200
commit 425bba67c5
15 changed files with 342 additions and 54 deletions
@@ -112,12 +112,12 @@ export class CertUploadService extends BaseService<CertInfoEntity> {
tasks: [
{
id: nanoid(10),
title: "上传证书解析任务",
title: "上传证书解析转换",
runnableType: "task",
steps: [
{
id: nanoid(10),
title: "上传证书解析",
title: "上传证书解析转换",
runnableType: "step",
input: {
certInfoId: newCertInfo.id,
@@ -140,8 +140,7 @@ export class CertUploadService extends BaseService<CertInfoEntity> {
const newPipeline = await tx.getRepository(PipelineEntity).save({
userId,
title: pipelineTitle,
type:"cert",
from:"cert_upload",
type:"cert_upload",
content: JSON.stringify(pipeline),
keepHistory:20,
})
@@ -29,12 +29,12 @@ export class PipelineEntity {
@Column({ comment: '启用/禁用', nullable: true, default: false })
disabled: boolean;
// cert: 证书; backup: 备份; custom:自定义;
// cert_apply: 证书申请;cert_upload: 证书上传; backup: 备份; custom:自定义;
@Column({ comment: '类型', nullable: true, default: 'cert' })
type: string;
// custom: 自定义; monitor: 监控;
@Column({ comment: '来源', nullable: true, default: 'custom' })
@Column({ comment: '来源', nullable: true, default: '' })
from: string;
@Column({