feat(REQ-4418) - 测试服务端与客户端枚举不一致的问题
This commit is contained in:
parent
d939b1ecd4
commit
27f9279581
@ -28,7 +28,7 @@ public enum AdminDataSource {
|
||||
this.desc = desc;
|
||||
}
|
||||
|
||||
@JsonCreator
|
||||
@JsonCreator(mode = JsonCreator.Mode.DELEGATING)
|
||||
public static AdminDataSource fromValue(String value) {
|
||||
if (value == null) {
|
||||
return UNKNOWN;
|
||||
|
||||
@ -29,7 +29,7 @@ public enum AdminRoleType {
|
||||
this.desc = desc;
|
||||
}
|
||||
|
||||
@JsonCreator
|
||||
@JsonCreator(mode = JsonCreator.Mode.DELEGATING)
|
||||
public static AdminRoleType fromValue(String value) {
|
||||
if (value == null) {
|
||||
return UNKNOWN;
|
||||
|
||||
@ -31,7 +31,7 @@ public enum AdminTypeEnum {
|
||||
this.desc = desc;
|
||||
}
|
||||
|
||||
@JsonCreator
|
||||
@JsonCreator(mode = JsonCreator.Mode.DELEGATING)
|
||||
public static AdminTypeEnum fromValue(String value) {
|
||||
if (value == null) {
|
||||
return UNKNOWN;
|
||||
|
||||
@ -42,7 +42,7 @@ public enum ApprovalMethodEnum {
|
||||
return type;
|
||||
}
|
||||
|
||||
@JsonCreator
|
||||
@JsonCreator(mode = JsonCreator.Mode.DELEGATING)
|
||||
public static ApprovalMethodEnum fromValue(String value) {
|
||||
if (value == null) {
|
||||
return unknown;
|
||||
|
||||
@ -36,7 +36,7 @@ public enum ApproverEmptyHandleTypeEnum {
|
||||
return type;
|
||||
}
|
||||
|
||||
@JsonCreator
|
||||
@JsonCreator(mode = JsonCreator.Mode.DELEGATING)
|
||||
public static ApproverEmptyHandleTypeEnum fromValue(String value) {
|
||||
if (value == null) {
|
||||
return unknown;
|
||||
|
||||
@ -39,7 +39,7 @@ public enum ApproverScopeEnum {
|
||||
return type;
|
||||
}
|
||||
|
||||
@JsonCreator
|
||||
@JsonCreator(mode = JsonCreator.Mode.DELEGATING)
|
||||
public static ApprovalMethodEnum fromValue(String value) {
|
||||
if (value == null) {
|
||||
return ApprovalMethodEnum.unknown;
|
||||
|
||||
@ -55,7 +55,7 @@ public enum ApproverSpecifyEnum {
|
||||
return type;
|
||||
}
|
||||
|
||||
@JsonCreator
|
||||
@JsonCreator(mode = JsonCreator.Mode.DELEGATING)
|
||||
public static ApproverSpecifyEnum fromValue(String value) {
|
||||
if (value == null) {
|
||||
return unknown;
|
||||
|
||||
@ -38,7 +38,7 @@ public enum ApproverSpecifyRangeEnum {
|
||||
return type;
|
||||
}
|
||||
|
||||
@JsonCreator
|
||||
@JsonCreator(mode = JsonCreator.Mode.DELEGATING)
|
||||
public static ApproverSpecifyRangeEnum fromValue(String value) {
|
||||
if (value == null) {
|
||||
return unknown;
|
||||
|
||||
@ -39,7 +39,7 @@ public enum ApproverSpecifyRangeUnitEnum {
|
||||
return type;
|
||||
}
|
||||
|
||||
@JsonCreator
|
||||
@JsonCreator(mode = JsonCreator.Mode.DELEGATING)
|
||||
public static ApproverSpecifyRangeUnitEnum fromValue(String value) {
|
||||
if (value == null) {
|
||||
return UNKNOWN;
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
package cn.axzo.workflow.common.enums;
|
||||
|
||||
import com.alibaba.fastjson.annotation.JSONCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonEnumDefaultValue;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import lombok.Getter;
|
||||
@ -36,7 +35,7 @@ public enum AttachmentTypeEnum {
|
||||
return type;
|
||||
}
|
||||
|
||||
@JSONCreator
|
||||
@JsonCreator(mode = JsonCreator.Mode.DELEGATING)
|
||||
public static AttachmentTypeEnum fromValue(String value) {
|
||||
if (value == null) {
|
||||
return unknown;
|
||||
|
||||
@ -96,7 +96,7 @@ public enum BpmnButtonEnum {
|
||||
this.supportBizType = supportBizType;
|
||||
}
|
||||
|
||||
@JsonCreator
|
||||
@JsonCreator(mode = JsonCreator.Mode.DELEGATING)
|
||||
public static BpmnButtonEnum fromValue(String value) {
|
||||
if (value == null) {
|
||||
return UNKNOWN;
|
||||
|
||||
@ -60,7 +60,7 @@ public enum BpmnCountersignTypeEnum {
|
||||
return null;
|
||||
}
|
||||
|
||||
@JsonCreator
|
||||
@JsonCreator(mode = JsonCreator.Mode.DELEGATING)
|
||||
public static BpmnCountersignTypeEnum fromValue(String value) {
|
||||
if (value == null) {
|
||||
return UNKNOW;
|
||||
|
||||
@ -35,7 +35,7 @@ public enum BpmnFlowNodeMode {
|
||||
return fromValue(type);
|
||||
}
|
||||
|
||||
@JsonCreator
|
||||
@JsonCreator(mode = JsonCreator.Mode.DELEGATING)
|
||||
public static BpmnFlowNodeMode fromValue(String value) {
|
||||
if (value == null) {
|
||||
return UNKNOWN;
|
||||
|
||||
@ -53,7 +53,7 @@ public enum BpmnFlowNodeType {
|
||||
return fromValue(type);
|
||||
}
|
||||
|
||||
@JsonCreator
|
||||
@JsonCreator(mode = JsonCreator.Mode.DELEGATING)
|
||||
public static BpmnFlowNodeType fromValue(String value) {
|
||||
if (!StringUtils.hasText(value)) {
|
||||
return UNKNOWN;
|
||||
|
||||
@ -41,7 +41,7 @@ public enum BpmnNoticeEnum {
|
||||
return key;
|
||||
}
|
||||
|
||||
@JsonCreator
|
||||
@JsonCreator(mode = JsonCreator.Mode.DELEGATING)
|
||||
public static BpmnNoticeEnum fromValue(String key) {
|
||||
if (key == null) {
|
||||
return unknown;
|
||||
|
||||
@ -48,7 +48,7 @@ public enum BpmnProcessInstanceResultEnum {
|
||||
.orElse(DELETED);
|
||||
}
|
||||
|
||||
@JsonCreator
|
||||
@JsonCreator(mode = JsonCreator.Mode.DELEGATING)
|
||||
public static BpmnProcessInstanceResultEnum fromValue(String value) {
|
||||
if (value == null) {
|
||||
return UNKNOWN;
|
||||
|
||||
@ -38,7 +38,7 @@ public enum BpmnProcessTaskResultEnum {
|
||||
return status;
|
||||
}
|
||||
|
||||
@JsonCreator
|
||||
@JsonCreator(mode = JsonCreator.Mode.DELEGATING)
|
||||
public static BpmnProcessTaskResultEnum fromValue(String status) {
|
||||
if (status == null) {
|
||||
return UNKNOWN;
|
||||
|
||||
@ -39,7 +39,7 @@ public enum BpmnReminderType {
|
||||
return type;
|
||||
}
|
||||
|
||||
@JsonCreator
|
||||
@JsonCreator(mode = JsonCreator.Mode.DELEGATING)
|
||||
public static BpmnReminderType fromValue(String value) {
|
||||
if (value == null) {
|
||||
return UNKNOWN;
|
||||
|
||||
@ -40,7 +40,7 @@ public enum BpmnSignType {
|
||||
return fromValue(type);
|
||||
}
|
||||
|
||||
@JsonCreator
|
||||
@JsonCreator(mode = JsonCreator.Mode.DELEGATING)
|
||||
public static BpmnSignType fromValue(String value) {
|
||||
if (value == null) {
|
||||
return UNKNOWN;
|
||||
|
||||
@ -28,7 +28,7 @@ public enum BusinessTypeEnum {
|
||||
return type;
|
||||
}
|
||||
|
||||
@JsonCreator
|
||||
@JsonCreator(mode = JsonCreator.Mode.DELEGATING)
|
||||
public static BusinessTypeEnum fromValue(String value) {
|
||||
if (value == null) {
|
||||
return UNKNOWN;
|
||||
|
||||
@ -34,7 +34,7 @@ public enum ButtonVisibleScopeEnum {
|
||||
return status;
|
||||
}
|
||||
|
||||
@JsonCreator
|
||||
@JsonCreator(mode = JsonCreator.Mode.DELEGATING)
|
||||
public static ButtonVisibleScopeEnum fromValue(String value) {
|
||||
if (value == null) {
|
||||
return UNKNOWN;
|
||||
|
||||
@ -64,7 +64,7 @@ public enum CarbonCopyObjectType {
|
||||
return fromValue(type);
|
||||
}
|
||||
|
||||
@JsonCreator
|
||||
@JsonCreator(mode = JsonCreator.Mode.DELEGATING)
|
||||
public static CarbonCopyObjectType fromValue(String value) {
|
||||
if (value == null) {
|
||||
return unknown;
|
||||
|
||||
@ -47,7 +47,7 @@ public enum CooperateShipTypeEnum {
|
||||
return desc;
|
||||
}
|
||||
|
||||
@JsonCreator
|
||||
@JsonCreator(mode = JsonCreator.Mode.DELEGATING)
|
||||
public static CooperateShipTypeEnum fromValue(String value) {
|
||||
if (value == null) {
|
||||
return UNKNOWN;
|
||||
|
||||
@ -20,7 +20,7 @@ public enum ExtModelStateFieldEnum {
|
||||
unknown,
|
||||
;
|
||||
|
||||
@JsonCreator
|
||||
@JsonCreator(mode = JsonCreator.Mode.DELEGATING)
|
||||
public static ExtModelStateFieldEnum fromValue(String value) {
|
||||
if (value == null) {
|
||||
return unknown;
|
||||
|
||||
@ -41,7 +41,7 @@ public enum FileTypeEnum {
|
||||
return fromValue(type);
|
||||
}
|
||||
|
||||
@JsonCreator
|
||||
@JsonCreator(mode = JsonCreator.Mode.DELEGATING)
|
||||
public static FileTypeEnum fromValue(String value) {
|
||||
if (value == null) {
|
||||
return UNKNOWN;
|
||||
|
||||
@ -35,7 +35,7 @@ public enum InitiatorSpecifiedRangeEnum {
|
||||
return type;
|
||||
}
|
||||
|
||||
@JsonCreator
|
||||
@JsonCreator(mode = JsonCreator.Mode.DELEGATING)
|
||||
public static InitiatorSpecifiedRangeEnum fromValue(String value) {
|
||||
if (value == null) {
|
||||
return unknown;
|
||||
|
||||
@ -38,7 +38,7 @@ public enum ModelBizTypeEnum {
|
||||
return fromValue(type);
|
||||
}
|
||||
|
||||
@JsonCreator
|
||||
@JsonCreator(mode = JsonCreator.Mode.DELEGATING)
|
||||
public static ModelBizTypeEnum fromValue(String value) {
|
||||
if (value == null) {
|
||||
return UNKNOWN;
|
||||
|
||||
@ -19,7 +19,7 @@ public enum OrderEnum {
|
||||
@JsonEnumDefaultValue
|
||||
UNKNOWN;
|
||||
|
||||
@JsonCreator
|
||||
@JsonCreator(mode = JsonCreator.Mode.DELEGATING)
|
||||
public static OrderEnum fromValue(String value) {
|
||||
if (value == null) {
|
||||
return UNKNOWN;
|
||||
|
||||
@ -27,7 +27,7 @@ public enum PrintFieldCategoryEnum {
|
||||
unknown,
|
||||
;
|
||||
|
||||
@JsonCreator
|
||||
@JsonCreator(mode = JsonCreator.Mode.DELEGATING)
|
||||
public static PrintFieldCategoryEnum fromValue(String value) {
|
||||
if (value == null) {
|
||||
return unknown;
|
||||
|
||||
@ -45,7 +45,7 @@ public enum SignApproverOrgLimitEnum {
|
||||
return fromValue(type);
|
||||
}
|
||||
|
||||
@JsonCreator
|
||||
@JsonCreator(mode = JsonCreator.Mode.DELEGATING)
|
||||
public static SignApproverOrgLimitEnum fromValue(String value) {
|
||||
if (value == null) {
|
||||
return UNKNOWN;
|
||||
|
||||
@ -40,7 +40,7 @@ public enum SignApproverRoleLimitEnum {
|
||||
.orElse(null);
|
||||
}
|
||||
|
||||
@JsonCreator
|
||||
@JsonCreator(mode = JsonCreator.Mode.DELEGATING)
|
||||
public static SignApproverRoleLimitEnum fromValue(String value) {
|
||||
if (value == null) {
|
||||
return UNKNOWN;
|
||||
|
||||
@ -23,7 +23,7 @@ public enum TimeQueryDirection {
|
||||
UNKNOWN,
|
||||
;
|
||||
|
||||
@JsonCreator
|
||||
@JsonCreator(mode = JsonCreator.Mode.DELEGATING)
|
||||
public static TimeQueryDirection fromValue(String value) {
|
||||
if (value == null) {
|
||||
return UNKNOWN;
|
||||
|
||||
@ -32,7 +32,7 @@ public enum VarTypeEnum {
|
||||
return type;
|
||||
}
|
||||
|
||||
@JsonCreator
|
||||
@JsonCreator(mode = JsonCreator.Mode.DELEGATING)
|
||||
public static VarTypeEnum fromValue(String value) {
|
||||
if (value == null) {
|
||||
return UNKNOWN;
|
||||
|
||||
@ -39,7 +39,7 @@ public enum WorkspaceType {
|
||||
.orElse(null);
|
||||
}
|
||||
|
||||
@JsonCreator
|
||||
@JsonCreator(mode = JsonCreator.Mode.DELEGATING)
|
||||
public static WorkspaceType fromValue(String value) {
|
||||
if (value == null) {
|
||||
return UN_KNOW;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user