| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.api; |
| | | |
| | | import com.doumee.service.business.third.model.ApiResponse; |
| | | import com.doumee.service.business.VisitsService; |
| | | 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; |
| | | |
| | | /** |
| | | * @author æ±è¹è¹ |
| | | * @date 2023/11/30 15:33 |
| | | */ |
| | | @Api(tags = "海康代å宿¶æåæ¥å£") |
| | | @RestController |
| | | @RequestMapping("/timer/hkNotice") |
| | | public class HkNoticeTimerController extends BaseController { |
| | | @Autowired |
| | | private HkSyncVisitServiceImpl hkSyncVisitService; |
| | | @Autowired |
| | | private HkSyncVisitFromHKServiceImpl hkSyncVisitFromHKService; |
| | | @Autowired |
| | | private VisitsService visitsService; |
| | | |
| | | @ApiOperation("å¼å¯å®æ¶æ¥è¯¢ææ°äººå代忰æ®ç¶æ") |
| | | @GetMapping("/getNoticeList") |
| | | public ApiResponse getNoticeList() { |
| | | hkSyncVisitService.syncVisitData(); |
| | | return ApiResponse.success("å¼å¯å®æ¶ä¸å访客é¢çº¦ç³è¯·æå"); |
| | | } |
| | | |
| | | |
| | | } |