ÎļþÃû´Ó server/visits/admin_timer/src/main/java/com/doumee/api/HkLogTimerController.java ÐÞ¸Ä |
| | |
| | | package com.doumee.api; |
| | | |
| | | import com.doumee.api.BaseController; |
| | | import com.doumee.core.model.ApiResponse; |
| | | import com.doumee.core.utils.Constants; |
| | | import com.doumee.service.business.InterfaceLogService; |
| | | import com.doumee.service.business.impl.hksync.HkSyncVisitServiceImpl; |
| | | import com.doumee.service.business.impl.hksync.fhk.HkSyncVisitFromHKServiceImpl; |
| | | import com.doumee.service.business.PlatformInterfaceLogService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * @author æ±è¹è¹ |
| | |
| | | @Api(tags = "æ¥å¿å®æ¶å¨æ¥å£") |
| | | @RestController |
| | | @RequestMapping("/timer/log") |
| | | public class HkLogTimerController extends BaseController { |
| | | public class InterfaceLogTimerController extends BaseController { |
| | | |
| | | @Autowired |
| | | private InterfaceLogService interfaceLogService; |
| | | @Autowired |
| | | private PlatformInterfaceLogService platformInterfaceLogService; |
| | | @ApiOperation("å¼å¯å®æ¶æ¥å£æ¥å¿æ¸
ç") |
| | | @GetMapping("/clearThreeMonthLog") |
| | | public ApiResponse clearThreeMonthLog() { |
| | | interfaceLogService.clearThreeMonthLog(); |
| | | platformInterfaceLogService.clearThreeMonthLog(); |
| | | return ApiResponse.success("å¼å¯å®æ¶æ¥å£æ¥å¿æ¸
çæå"); |
| | | } |
| | | |