mirror of
http://192.168.1.205:9980/cf_devdept2/cf_imes_server.git
synced 2026-08-13 05:12:07 +08:00
system微服务api模块单元测试完善
This commit is contained in:
+2
@@ -8,6 +8,8 @@ import com.cf.imes.framework.common.enums.RpcConstants;
|
||||
* @author 晨丰科技
|
||||
*/
|
||||
public class ApiConstants {
|
||||
private ApiConstants() {
|
||||
}
|
||||
|
||||
/**
|
||||
* 服务名
|
||||
|
||||
+2
@@ -6,6 +6,8 @@ package com.cf.imes.module.system.enums;
|
||||
* @author 晨丰科技
|
||||
*/
|
||||
public class DictTypeConstants {
|
||||
private DictTypeConstants() {
|
||||
}
|
||||
|
||||
public static final String USER_TYPE = "user_type"; // 用户类型
|
||||
public static final String COMMON_STATUS = "common_status"; // 系统状态
|
||||
|
||||
-8
@@ -19,12 +19,4 @@ public enum ProcessTypeEnum {
|
||||
|
||||
private final Integer status;
|
||||
private String description;
|
||||
|
||||
public boolean equals(Integer status) {
|
||||
return this.status .equals(status) ;
|
||||
}
|
||||
|
||||
public boolean equals(ProcessTypeEnum enableStatusEnum) {
|
||||
return enableStatusEnum != null && enableStatusEnum.status .equals(this.getStatus()) ;
|
||||
}
|
||||
}
|
||||
-4
@@ -35,10 +35,6 @@ public enum ProductStatusEnum implements IntArrayValuable {
|
||||
return ARRAYS;
|
||||
}
|
||||
|
||||
public static boolean isProductUpdates(Integer status) {
|
||||
return Objects.equals(PRODUCT_UPDATES.status, status);
|
||||
}
|
||||
|
||||
public static boolean isProductDelis(Integer status) {
|
||||
return Objects.equals(PRODUCT_DELIS.status, status);
|
||||
}
|
||||
|
||||
+1
-1
@@ -23,7 +23,7 @@ public enum SmsTemplateTypeEnum {
|
||||
private final int type;
|
||||
|
||||
|
||||
public static SmsTemplateTypeEnum valueOf(Integer type) {
|
||||
public static SmsTemplateTypeEnum getType(Integer type) {
|
||||
if (type == null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user