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 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 江蹄蹄
|
* @date 2023/11/30 15:33
|
*/
|
@Api(tags = "日志定时器接口")
|
@RestController
|
@RequestMapping("/timer/log")
|
public class HkLogTimerController extends BaseController {
|
|
@Autowired
|
private InterfaceLogService interfaceLogService;
|
@ApiOperation("开启定时接口日志清理")
|
@GetMapping("/clearThreeMonthLog")
|
public ApiResponse clearThreeMonthLog() {
|
interfaceLogService.clearThreeMonthLog();
|
return ApiResponse.success("开启定时接口日志清理成功");
|
}
|
|
|
}
|