修改日志相关字段名称,将描述字段从'describe'更改为'detail',以提高代码一致性和可读性。
This commit is contained in:
@ -86,7 +86,7 @@ public class LogAspect {
|
||||
OperationLogDetail annotation = signature.getMethod().getAnnotation(OperationLogDetail.class);
|
||||
if (annotation != null) {
|
||||
operationLog.setLevel("aop");
|
||||
operationLog.setDescribe(getDetail(((MethodSignature) joinPoint.getSignature()).getParameterNames(), joinPoint.getArgs(), annotation));
|
||||
operationLog.setDetail(getDetail(((MethodSignature) joinPoint.getSignature()).getParameterNames(), joinPoint.getArgs(), annotation));
|
||||
operationLog.setOperationType(annotation.operationType().getValue());
|
||||
operationLog.setBusinessModule(annotation.businessModule().getValue());
|
||||
}
|
||||
|
@ -88,7 +88,7 @@ public class OperationLog implements Serializable {
|
||||
/**
|
||||
* 日志描述
|
||||
*/
|
||||
private String describe;
|
||||
private String detail;
|
||||
|
||||
/**
|
||||
* 方法运行时间
|
||||
|
@ -106,7 +106,7 @@ public class OperationLogServiceImpl implements OperationLogService {
|
||||
.setResult(result)
|
||||
.setBusinessModule(businessModule.getValue())
|
||||
.setLevel("business")
|
||||
.setDescribe(detail)
|
||||
.setDetail(detail)
|
||||
.setTransactionId(transactionId)
|
||||
.setOperationType(type.getValue()));
|
||||
}
|
||||
|
Reference in New Issue
Block a user