Эх сурвалжийг харах

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

- 在getToken方法上添加@Log注解以记录操作日志
- 开启参数和结果的日志记录功能
wzq 2 долоо хоног өмнө
parent
commit
31dce437d2

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

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