| | |
| | | package com.ycl.platform.controller; |
| | | |
| | | import com.ycl.platform.domain.query.DataCenterQuery; |
| | | import com.ycl.platform.domain.query.PlatformOnlineQuery; |
| | | import com.ycl.platform.service.DataCenterService; |
| | | import com.ycl.platform.service.PlatformOnlineService; |
| | | import com.ycl.system.Result; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | |
| | | public class DataCenterController { |
| | | |
| | | private final DataCenterService dataCenterService; |
| | | private final PlatformOnlineService platformOnlineService; |
| | | |
| | | /** |
| | | * 平台在线率 |
| | | * |
| | | * @param query |
| | | * @return |
| | | */ |
| | | @GetMapping("/platformOnlineRate") |
| | | @ApiOperation(value = "平台在线率", notes = "平台在线率") |
| | | @PreAuthorize("hasAuthority('platformOnline:page')") |
| | | public Result platformOnlineRate(DataCenterQuery query) { |
| | | return platformOnlineService.page(query); |
| | | } |
| | | |
| | | /** |
| | | * 视频:点位在线率 |
| | |
| | | */ |
| | | @GetMapping("/videoPointOnlineRate") |
| | | public Result videoPointOnlineRate(DataCenterQuery query) { |
| | | return Result.ok().data(dataCenterService.videoPointOnlineRate(query)); |
| | | return dataCenterService.videoPointOnlineRate(query); |
| | | } |
| | | |
| | | /** |
| | |
| | | */ |
| | | @GetMapping("/videoOneMachineDocumentRegister") |
| | | public Result videoOneMachineDocumentRegister(DataCenterQuery query) { |
| | | return Result.ok().data(dataCenterService.videoOneMachineDocumentRegister(query)); |
| | | return dataCenterService.videoOneMachineDocumentRegister(query); |
| | | } |
| | | |
| | | /** |