🎨 调整枚举类属性为final
This commit is contained in:
@@ -21,5 +21,5 @@ public enum BooleanEm {
|
||||
*/
|
||||
FALSE(0);
|
||||
|
||||
private int value;
|
||||
private final int value;
|
||||
}
|
||||
|
||||
@@ -36,6 +36,6 @@ public enum BaseResultCode implements ResultCode {
|
||||
*/
|
||||
UNKNOWN_ERROR(99999, "Unknown Error");
|
||||
|
||||
private Integer code;
|
||||
private String message;
|
||||
private final Integer code;
|
||||
private final String message;
|
||||
}
|
||||
|
||||
@@ -4,12 +4,11 @@ import cn.hutool.core.util.ArrayUtil;
|
||||
import cn.hutool.core.util.URLUtil;
|
||||
import cn.hutool.json.JSONUtil;
|
||||
import com.hccake.ballcat.commom.log.operation.annotation.OperationLogging;
|
||||
import com.hccake.ballcat.commom.log.operation.enums.LogStatus;
|
||||
import com.hccake.ballcat.commom.log.operation.event.OperationLogEvent;
|
||||
import com.hccake.ballcat.commom.log.operation.model.OperationLogDTO;
|
||||
import com.hccake.ballcat.commom.log.util.LogUtils;
|
||||
import com.hccake.ballcat.common.core.util.IPUtil;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.aspectj.lang.ProceedingJoinPoint;
|
||||
import org.aspectj.lang.Signature;
|
||||
@@ -73,26 +72,6 @@ public class OperationLogAspect {
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 操作状态
|
||||
*/
|
||||
@Getter
|
||||
@AllArgsConstructor
|
||||
enum LogStatus {
|
||||
/**
|
||||
* 成功
|
||||
*/
|
||||
SUCCESS(1),
|
||||
/**
|
||||
* 失败
|
||||
*/
|
||||
FAIL(0);
|
||||
|
||||
private int value;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 获取方法参数
|
||||
* @param joinPoint
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
package com.hccake.ballcat.commom.log.operation.enums;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
|
||||
/**
|
||||
* @author Hccake
|
||||
* @version 1.0
|
||||
* @date 2020/5/15 16:47
|
||||
* 操作状态枚举
|
||||
*/
|
||||
@Getter
|
||||
@AllArgsConstructor
|
||||
public enum LogStatus {
|
||||
/**
|
||||
* 成功
|
||||
*/
|
||||
SUCCESS(1),
|
||||
/**
|
||||
* 失败
|
||||
*/
|
||||
FAIL(0);
|
||||
|
||||
private final int value;
|
||||
}
|
||||
Reference in New Issue
Block a user