完成 oauth2.0 的逻辑
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
package cn.iocoder.common.framework.constant;
|
||||
package cn.iocoder.common.framework.enums;
|
||||
|
||||
import cn.iocoder.common.framework.core.IntArrayValuable;
|
||||
|
||||
@@ -17,11 +17,11 @@ public enum CommonStatusEnum implements IntArrayValuable {
|
||||
/**
|
||||
* 状态值
|
||||
*/
|
||||
private Integer value;
|
||||
private final Integer value;
|
||||
/**
|
||||
* 状态名
|
||||
*/
|
||||
private String name;
|
||||
private final String name;
|
||||
|
||||
CommonStatusEnum(Integer value, String name) {
|
||||
this.value = value;
|
||||
@@ -32,29 +32,10 @@ public enum CommonStatusEnum implements IntArrayValuable {
|
||||
return value;
|
||||
}
|
||||
|
||||
public CommonStatusEnum setValue(Integer value) {
|
||||
this.value = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public CommonStatusEnum setName(String name) {
|
||||
this.name = name;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public static boolean isValid(Integer status) {
|
||||
if (status == null) {
|
||||
return false;
|
||||
}
|
||||
return ENABLE.value.equals(status)
|
||||
|| DISABLE.value.equals(status);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int[] array() {
|
||||
return ARRAYS;
|
||||
@@ -1,4 +1,4 @@
|
||||
package cn.iocoder.common.framework.constant;
|
||||
package cn.iocoder.common.framework.enums;
|
||||
|
||||
/**
|
||||
* Mall 全局枚举
|
||||
@@ -1,4 +1,4 @@
|
||||
package cn.iocoder.common.framework.constant;
|
||||
package cn.iocoder.common.framework.enums;
|
||||
|
||||
/**
|
||||
* 模块错误码区间
|
||||
@@ -1,4 +1,4 @@
|
||||
package cn.iocoder.common.framework.constant;
|
||||
package cn.iocoder.common.framework.enums;
|
||||
|
||||
/**
|
||||
* 错误码枚举类
|
||||
@@ -1,4 +1,4 @@
|
||||
package cn.iocoder.common.framework.constant;
|
||||
package cn.iocoder.common.framework.enums;
|
||||
|
||||
import cn.iocoder.common.framework.core.IntArrayValuable;
|
||||
|
||||
@@ -17,11 +17,11 @@ public enum UserTypeEnum implements IntArrayValuable {
|
||||
/**
|
||||
* 类型
|
||||
*/
|
||||
private Integer value;
|
||||
private final Integer value;
|
||||
/**
|
||||
* 类型名
|
||||
*/
|
||||
private String name;
|
||||
private final String name;
|
||||
|
||||
UserTypeEnum(Integer value, String name) {
|
||||
this.value = value;
|
||||
@@ -32,20 +32,10 @@ public enum UserTypeEnum implements IntArrayValuable {
|
||||
return value;
|
||||
}
|
||||
|
||||
public UserTypeEnum setValue(Integer value) {
|
||||
this.value = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public UserTypeEnum setName(String name) {
|
||||
this.name = name;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int[] array() {
|
||||
return ARRAYS;
|
||||
@@ -1,6 +1,6 @@
|
||||
package cn.iocoder.common.framework.util;
|
||||
|
||||
import cn.iocoder.common.framework.constant.MallConstants;
|
||||
import cn.iocoder.common.framework.enums.MallConstants;
|
||||
import cn.iocoder.common.framework.vo.CommonResult;
|
||||
import org.apache.skywalking.apm.toolkit.trace.TraceContext;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user