| | |
| | | package com.doumee.api; |
| | | |
| | | import com.doumee.core.haikang.model.param.request.PlatformStatusRequest; |
| | | import com.doumee.core.model.ApiResponse; |
| | | import com.doumee.service.business.impl.hksync.HkSyncDeviceServiceImpl; |
| | | import com.doumee.service.business.third.model.ApiResponse; |
| | | import com.doumee.service.business.impl.hksync.HkSyncPlatformsServiceImpl; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | |
| | | * @date 2023/11/30 15:33 |
| | | */ |
| | | @Api(tags = "设备定时器接口") |
| | | @Slf4j |
| | | @RestController |
| | | @RequestMapping("/timer/platform") |
| | | public class HkPlatformTimerController extends BaseController { |
| | | @Autowired |
| | | private HkSyncPlatformsServiceImpl hkSyncPlatformsService; |
| | | @ApiOperation("开启定时查询月台状态") |
| | | @GetMapping("/getPlatformStatus") |
| | | @PostMapping("/getPlatformStatus") |
| | | public ApiResponse getPlatformStatus() { |
| | | log.info("定时任务执行开始:getPlatformStatus-查询月台状态"); |
| | | hkSyncPlatformsService.getPlatformStatus(new PlatformStatusRequest()); |
| | | return ApiResponse.success("开启定时查询月台状态成功"); |
| | | } |