| | |
| | | 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; |
| | |
| | | @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("开启定时接口日志清理成功"); |
| | | } |