소스 검색

feat(charging): 为获取token接口添加操作日志记录

- 在getToken方法上添加@Log注解以记录操作日志
- 开启参数和结果的日志记录功能
wzq 2 주 전
부모
커밋
31dce437d2
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/main/java/com/zsElectric/boot/charging/controller/LinkDataController.java

+ 1 - 0
src/main/java/com/zsElectric/boot/charging/controller/LinkDataController.java

@@ -37,6 +37,7 @@ public class LinkDataController {
      */
     @Operation(summary = "获取token")
     @PostMapping("/query_token")
+    @Log(value = "获取token", module = LogModuleEnum.PARKING, params = true, result = true)
     public ResponseParmsEntity getToken(@RequestBody RequestParmsEntity request) throws Exception {
         ResponseParmsEntity responseParmsEntity = new ResponseParmsEntity();
         try {