⚡ 修改执行参数.
This commit is contained in:
@@ -20,16 +20,13 @@ import lombok.NoArgsConstructor;
|
||||
@Schema(name = "ExecParameterSchemaDTO", description = "命令执行参数 schema 对象")
|
||||
public class ExecParameterSchemaDTO {
|
||||
|
||||
@Schema(description = "参数名称")
|
||||
@Schema(description = "参数名")
|
||||
private String name;
|
||||
|
||||
@Schema(description = "参数描述")
|
||||
private String desc;
|
||||
|
||||
@Schema(description = "默认值")
|
||||
private Object defaultValue;
|
||||
|
||||
@Schema(description = "值")
|
||||
@Schema(description = "参数值")
|
||||
private Object value;
|
||||
|
||||
}
|
||||
|
||||
@@ -335,9 +335,6 @@ public class ExecCommandServiceImpl implements ExecCommandService {
|
||||
.collect(Collectors.toMap(ExecParameterSchemaDTO::getName,
|
||||
s -> {
|
||||
Object value = s.getValue();
|
||||
if (value == null) {
|
||||
value = s.getDefaultValue();
|
||||
}
|
||||
if (value == null) {
|
||||
value = Const.EMPTY;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user