|  |  |  | 
|---|
|  |  |  | package com.doumee.api; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import com.doumee.core.annotation.pr.PreventRepeat; | 
|---|
|  |  |  | import com.doumee.service.business.DeviceService; | 
|---|
|  |  |  | import com.doumee.service.business.third.model.ApiResponse; | 
|---|
|  |  |  | import com.doumee.service.business.impl.hksync.HkSyncDeviceServiceImpl; | 
|---|
|  |  |  | 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.PostMapping; | 
|---|
|  |  |  | import org.springframework.web.bind.annotation.RequestMapping; | 
|---|
|  |  |  | import org.springframework.web.bind.annotation.RestController; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | @Autowired | 
|---|
|  |  |  | private DeviceService deviceService; | 
|---|
|  |  |  | @ApiOperation("开启定时查询设备状态") | 
|---|
|  |  |  | @GetMapping("/getAscDeviceStatus") | 
|---|
|  |  |  | @PostMapping("/getAscDeviceStatus") | 
|---|
|  |  |  | public ApiResponse getAscDeviceStatus() { | 
|---|
|  |  |  | hkSyncDeviceService.getAscDeviceStatus(); | 
|---|
|  |  |  | return ApiResponse.success("开启定时查询设备状态成功"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | @ApiOperation("更新全部LED屏显内容为默认内容") | 
|---|
|  |  |  | @GetMapping("/allLedDefualtContent") | 
|---|
|  |  |  | @PostMapping("/allLedDefualtContent") | 
|---|
|  |  |  | public ApiResponse allLedDefualtContent() { | 
|---|
|  |  |  | deviceService.allLedDefualtContent(); | 
|---|
|  |  |  | return ApiResponse.success("更新全部LED屏显内容为默认内容"); | 
|---|