大声道撒旦
This commit is contained in:
parent
9441d2a7a5
commit
725175d069
@ -5,6 +5,7 @@ import com.qqchen.deploy.backend.framework.enums.QueryType;
|
|||||||
import com.qqchen.deploy.backend.framework.query.BaseQuery;
|
import com.qqchen.deploy.backend.framework.query.BaseQuery;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import lombok.EqualsAndHashCode;
|
import lombok.EqualsAndHashCode;
|
||||||
|
|
||||||
import java.time.LocalDateTime;
|
import java.time.LocalDateTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -65,19 +66,5 @@ public class RepositoryGroupQuery extends BaseQuery {
|
|||||||
@QueryField(field = "visibility", type = QueryType.LIKE)
|
@QueryField(field = "visibility", type = QueryType.LIKE)
|
||||||
private String visibility;
|
private String visibility;
|
||||||
|
|
||||||
/**
|
|
||||||
* 排序号
|
|
||||||
*/
|
|
||||||
@QueryField(field = "sort")
|
|
||||||
private Integer sort;
|
|
||||||
|
|
||||||
@QueryField(field = "enabled")
|
|
||||||
private Boolean enabled;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 外部系统下路径唯一
|
|
||||||
*/
|
|
||||||
@QueryField(field = "path)", type = QueryType.LIKE)
|
|
||||||
private String path);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -12,11 +12,4 @@ import java.util.Optional;
|
|||||||
@Repository
|
@Repository
|
||||||
public interface IRepositoryBranchRepository extends IBaseRepository<RepositoryBranch, Long> {
|
public interface IRepositoryBranchRepository extends IBaseRepository<RepositoryBranch, Long> {
|
||||||
|
|
||||||
@Modifying
|
|
||||||
@Transactional
|
|
||||||
void deleteByExternalSystemId(Long externalSystemId);
|
|
||||||
|
|
||||||
Optional<RepositoryBranch> findByExternalSystemIdAndProjectIdAndName(Long externalSystemId, Long projectId, String name);
|
|
||||||
|
|
||||||
List<RepositoryBranch> findByExternalSystemIdAndProjectIdAndDeletedFalse(Long externalSystemId, Long projectId);
|
|
||||||
}
|
}
|
||||||
@ -12,11 +12,4 @@ import java.util.Optional;
|
|||||||
@Repository
|
@Repository
|
||||||
public interface IRepositoryProjectRepository extends IBaseRepository<RepositoryProject, Long> {
|
public interface IRepositoryProjectRepository extends IBaseRepository<RepositoryProject, Long> {
|
||||||
|
|
||||||
@Modifying
|
|
||||||
@Transactional
|
|
||||||
void deleteByExternalSystemId(Long externalSystemId);
|
|
||||||
|
|
||||||
Optional<RepositoryProject> findByExternalSystemIdAndProjectId(Long externalSystemId, Long projectId);
|
|
||||||
|
|
||||||
List<RepositoryProject> findByExternalSystemIdAndGroupIdAndDeletedFalseOrderBySortAsc(Long externalSystemId, Long groupId);
|
|
||||||
}
|
}
|
||||||
@ -9,5 +9,4 @@ import java.util.List;
|
|||||||
|
|
||||||
@Repository
|
@Repository
|
||||||
public interface IRepositorySyncHistoryRepository extends IBaseRepository<RepositorySyncHistory, Long> {
|
public interface IRepositorySyncHistoryRepository extends IBaseRepository<RepositorySyncHistory, Long> {
|
||||||
List<RepositorySyncHistory> findTop50ByOrderByStartTimeDesc();
|
|
||||||
}
|
}
|
||||||
@ -103,4 +103,9 @@ public @interface SchemaProperty {
|
|||||||
* 代码编辑器配置,用于配置Monaco Editor等代码编辑器的行为
|
* 代码编辑器配置,用于配置Monaco Editor等代码编辑器的行为
|
||||||
*/
|
*/
|
||||||
CodeEditorConfig codeEditor() default @CodeEditorConfig;
|
CodeEditorConfig codeEditor() default @CodeEditorConfig;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 是否只读
|
||||||
|
*/
|
||||||
|
boolean readOnly() default false;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -23,6 +23,11 @@ import java.util.Optional;
|
|||||||
*
|
*
|
||||||
* @param <P> Panel变量类型
|
* @param <P> Panel变量类型
|
||||||
* @param <L> Local变量类型
|
* @param <L> Local变量类型
|
||||||
|
* <p>
|
||||||
|
* <p>
|
||||||
|
* panelVariables: 节点配置,一次配置长期有效
|
||||||
|
* localVariables: 运行时变量,每次执行都会变化
|
||||||
|
* fromVariables: 表单输入,每次执行需要用户填写
|
||||||
*/
|
*/
|
||||||
@Slf4j
|
@Slf4j
|
||||||
public abstract class BaseNodeDelegate<P, L> implements JavaDelegate {
|
public abstract class BaseNodeDelegate<P, L> implements JavaDelegate {
|
||||||
|
|||||||
@ -8,12 +8,5 @@ import lombok.EqualsAndHashCode;
|
|||||||
@EqualsAndHashCode(callSuper = true)
|
@EqualsAndHashCode(callSuper = true)
|
||||||
public class DeployNodeLocalVariables extends BaseNodeLocalVariables {
|
public class DeployNodeLocalVariables extends BaseNodeLocalVariables {
|
||||||
|
|
||||||
@SchemaProperty(
|
|
||||||
title = "委派者",
|
|
||||||
description = "委派者",
|
|
||||||
defaultValue = "${deployNodeDelegate}",
|
|
||||||
required = true
|
|
||||||
)
|
|
||||||
private String delegate;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -8,12 +8,5 @@ import lombok.EqualsAndHashCode;
|
|||||||
@EqualsAndHashCode(callSuper = true)
|
@EqualsAndHashCode(callSuper = true)
|
||||||
public class GatewayNodeLocalVariables extends BaseNodeLocalVariables {
|
public class GatewayNodeLocalVariables extends BaseNodeLocalVariables {
|
||||||
|
|
||||||
@SchemaProperty(
|
|
||||||
title = "委派者",
|
|
||||||
description = "委派者",
|
|
||||||
defaultValue = "${gatewayNodeDelegate}",
|
|
||||||
required = true
|
|
||||||
)
|
|
||||||
private String delegate;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -8,12 +8,5 @@ import lombok.EqualsAndHashCode;
|
|||||||
@EqualsAndHashCode(callSuper = true)
|
@EqualsAndHashCode(callSuper = true)
|
||||||
public class NotificationNodeLocalVariables extends BaseNodeLocalVariables {
|
public class NotificationNodeLocalVariables extends BaseNodeLocalVariables {
|
||||||
|
|
||||||
@SchemaProperty(
|
|
||||||
title = "委派者",
|
|
||||||
description = "委派者",
|
|
||||||
defaultValue = "${notificationNodeDelegate}",
|
|
||||||
required = true
|
|
||||||
)
|
|
||||||
private String delegate;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -8,12 +8,5 @@ import lombok.EqualsAndHashCode;
|
|||||||
@EqualsAndHashCode(callSuper = true)
|
@EqualsAndHashCode(callSuper = true)
|
||||||
public class ScriptNodeLocalVariables extends BaseNodeLocalVariables {
|
public class ScriptNodeLocalVariables extends BaseNodeLocalVariables {
|
||||||
|
|
||||||
@SchemaProperty(
|
|
||||||
title = "委派者",
|
|
||||||
description = "委派者",
|
|
||||||
defaultValue = "${shellNodeDelegate}",
|
|
||||||
required = true
|
|
||||||
)
|
|
||||||
private String delegate;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -9,11 +9,12 @@ import lombok.Data;
|
|||||||
@Data
|
@Data
|
||||||
public class BaseNodePanelVariables {
|
public class BaseNodePanelVariables {
|
||||||
|
|
||||||
|
|
||||||
@SchemaProperty(
|
@SchemaProperty(
|
||||||
title = "节点编码",
|
title = "节点编码",
|
||||||
description = "工作流节点的编码",
|
description = "工作流节点的编码",
|
||||||
required = true,
|
required = true,
|
||||||
order = 1
|
order = 2
|
||||||
)
|
)
|
||||||
private String code;
|
private String code;
|
||||||
|
|
||||||
@ -24,7 +25,7 @@ public class BaseNodePanelVariables {
|
|||||||
title = "节点名称",
|
title = "节点名称",
|
||||||
description = "工作流节点的显示名称",
|
description = "工作流节点的显示名称",
|
||||||
required = true,
|
required = true,
|
||||||
order = 2
|
order = 3
|
||||||
)
|
)
|
||||||
private String name;
|
private String name;
|
||||||
|
|
||||||
@ -34,7 +35,7 @@ public class BaseNodePanelVariables {
|
|||||||
@SchemaProperty(
|
@SchemaProperty(
|
||||||
title = "节点描述",
|
title = "节点描述",
|
||||||
description = "工作流节点的详细描述",
|
description = "工作流节点的详细描述",
|
||||||
order = 3
|
order = 4
|
||||||
)
|
)
|
||||||
private String description;
|
private String description;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
package com.qqchen.deploy.backend.workflow.dto.definition.node.panelVariables;
|
package com.qqchen.deploy.backend.workflow.dto.definition.node.panelVariables;
|
||||||
|
|
||||||
|
import com.qqchen.deploy.backend.workflow.annotation.SchemaProperty;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import lombok.EqualsAndHashCode;
|
import lombok.EqualsAndHashCode;
|
||||||
|
|
||||||
@ -11,4 +12,13 @@ import lombok.EqualsAndHashCode;
|
|||||||
public class DeployNodePanelVariables extends BaseNodePanelVariables {
|
public class DeployNodePanelVariables extends BaseNodePanelVariables {
|
||||||
|
|
||||||
|
|
||||||
|
@SchemaProperty(
|
||||||
|
title = "委派者",
|
||||||
|
description = "委派者",
|
||||||
|
defaultValue = "${deployNodeDelegate}",
|
||||||
|
readOnly = true,
|
||||||
|
order = 1
|
||||||
|
)
|
||||||
|
private String delegate;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -10,6 +10,15 @@ import java.util.List;
|
|||||||
@EqualsAndHashCode(callSuper = true)
|
@EqualsAndHashCode(callSuper = true)
|
||||||
public class GatewayNodePanelVariables extends BaseNodePanelVariables {
|
public class GatewayNodePanelVariables extends BaseNodePanelVariables {
|
||||||
|
|
||||||
|
@SchemaProperty(
|
||||||
|
title = "委派者",
|
||||||
|
description = "委派者",
|
||||||
|
defaultValue = "${gatewayNodeDelegate}",
|
||||||
|
readOnly = true,
|
||||||
|
order = 1
|
||||||
|
)
|
||||||
|
private String delegate;
|
||||||
|
|
||||||
@SchemaProperty(
|
@SchemaProperty(
|
||||||
title = "网关类型",
|
title = "网关类型",
|
||||||
description = "网关类型",
|
description = "网关类型",
|
||||||
@ -24,7 +33,8 @@ public class GatewayNodePanelVariables extends BaseNodePanelVariables {
|
|||||||
"并行网关",
|
"并行网关",
|
||||||
"包容网关"
|
"包容网关"
|
||||||
},
|
},
|
||||||
defaultValue = "exclusiveGateway"
|
defaultValue = "exclusiveGateway",
|
||||||
|
order = 5
|
||||||
)
|
)
|
||||||
private String gatewayType;
|
private String gatewayType;
|
||||||
}
|
}
|
||||||
@ -11,6 +11,15 @@ import lombok.EqualsAndHashCode;
|
|||||||
@EqualsAndHashCode(callSuper = true)
|
@EqualsAndHashCode(callSuper = true)
|
||||||
public class NotificationNodePanelVariables extends BaseNodePanelVariables {
|
public class NotificationNodePanelVariables extends BaseNodePanelVariables {
|
||||||
|
|
||||||
|
@SchemaProperty(
|
||||||
|
title = "委派者",
|
||||||
|
description = "委派者",
|
||||||
|
defaultValue = "${notificationNodeDelegate}",
|
||||||
|
required = true,
|
||||||
|
readOnly = true,
|
||||||
|
order = 1
|
||||||
|
)
|
||||||
|
private String delegate;
|
||||||
|
|
||||||
@SchemaProperty(
|
@SchemaProperty(
|
||||||
title = "测试输出",
|
title = "测试输出",
|
||||||
|
|||||||
@ -14,6 +14,15 @@ import java.util.List;
|
|||||||
@EqualsAndHashCode(callSuper = true)
|
@EqualsAndHashCode(callSuper = true)
|
||||||
public class ScriptNodePanelVariables extends BaseNodePanelVariables {
|
public class ScriptNodePanelVariables extends BaseNodePanelVariables {
|
||||||
|
|
||||||
|
@SchemaProperty(
|
||||||
|
title = "委派者",
|
||||||
|
description = "委派者",
|
||||||
|
defaultValue = "${shellNodeDelegate}",
|
||||||
|
required = true,
|
||||||
|
readOnly = true,
|
||||||
|
order = 1
|
||||||
|
)
|
||||||
|
private String delegate;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 脚本语言
|
* 脚本语言
|
||||||
|
|||||||
@ -61,6 +61,9 @@ public class GenerateSchemaUtils {
|
|||||||
if (!annotation.description().isEmpty()) {
|
if (!annotation.description().isEmpty()) {
|
||||||
property.put("description", annotation.description());
|
property.put("description", annotation.description());
|
||||||
}
|
}
|
||||||
|
if (annotation.readOnly()) {
|
||||||
|
property.put("readOnly", true);
|
||||||
|
}
|
||||||
if (!annotation.format().isEmpty()) {
|
if (!annotation.format().isEmpty()) {
|
||||||
property.put("format", annotation.format());
|
property.put("format", annotation.format());
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user