jiangping
2025-05-21 edf0e8e51fad2cca56a75d5e8fd5ba2f0aa2e12e
server/visits/admin_timer/src/main/java/com/doumee/api/InterfaceLogTimerController.java
@@ -1,5 +1,7 @@
package com.doumee.api;
import com.doumee.dao.business.model.WmsInterfaceLog;
import com.doumee.service.business.WmsInterfaceLogService;
import com.doumee.service.business.third.model.ApiResponse;
import com.doumee.service.business.InterfaceLogService;
import com.doumee.service.business.PlatformInterfaceLogService;
@@ -22,11 +24,14 @@
    @Autowired
    private InterfaceLogService interfaceLogService;
    @Autowired
    private WmsInterfaceLogService wmsInterfaceLogService;
    @Autowired
    private PlatformInterfaceLogService platformInterfaceLogService;
    @ApiOperation("开启定时接口日志清理")
    @GetMapping("/clearThreeMonthLog")
    public ApiResponse clearThreeMonthLog() {
        interfaceLogService.clearThreeMonthLog();
        wmsInterfaceLogService.clearThreeMonthLog();
        platformInterfaceLogService.clearThreeMonthLog();
        return ApiResponse.success("开启定时接口日志清理成功");
    }