LAC 前端联调调整

yun-zuoyi
汪云昊 6 years ago
parent 87d9b5c6ec
commit 053b3ae0e4

@ -180,4 +180,74 @@ public class LacEnumUtil {
}
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum RETURN_METHOD{
SYNC(1,"同步"),
ASYNC(2,"异步");
private int value;
private String description;
RETURN_METHOD(int value, String description) {
this.value = value;
this.description = description;
}
public int getValue() {
return value;
}
public String getDescription() {
return description;
}
public static String valueOfDescription(int val) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) {
tmp = values()[i].description;
}
}
return tmp;
}
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum PARAM_VALUE_TYPE{
NUMBER(1,"数字"),
STRING(2,"字符串");
private int value;
private String description;
PARAM_VALUE_TYPE(int value, String description) {
this.value = value;
this.description = description;
}
public int getValue() {
return value;
}
public String getDescription() {
return description;
}
public static String valueOfDescription(int val) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) {
tmp = values()[i].description;
}
}
return tmp;
}
}
}

@ -56,12 +56,16 @@ public class LacCommandStackStep extends BaseBean {
@JsonSerialize(using = ToStringSerializer.class)
private Long templateId;
@Column(name="STEP_NAME")
@Column(name="TEMPLATE_NAME_RDD")
@ApiParam(value ="模板名称")
private String templateNameRdd;
@Column(name="STEP_NAME")
@ApiParam(value ="步骤名称")
private String stepName;
@Column(name="STEP_CODE")
@ApiParam(value ="模板代码")
@ApiParam(value ="步骤代码")
private String stepCode;
@Column(name="STEP_SORT")

@ -81,10 +81,6 @@ public class LacSuitCase extends BaseBean {
@ApiParam(value ="返回类型")
private Integer returnMethod;
@Column(name="SUTI_CASE_STATUS")
@ApiParam(value ="适配器状态")
private Integer sutiCaseStatus;
@Column(name="SUIT_CASE_DESCRIPTION")
@ApiParam(value ="适配器描述")
private String suitCaseDescription;

Loading…
Cancel
Save