xiangpei
2024-08-12 68e4f49cf09a133defc646f10654bbb3fe6ab487
ycl-server/src/main/java/com/ycl/platform/controller/DataCenterController.java
@@ -1,9 +1,13 @@
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;
@@ -20,6 +24,20 @@
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);
    }
    /**
     * 视频:点位在线率
@@ -29,7 +47,7 @@
     */
    @GetMapping("/videoPointOnlineRate")
    public Result videoPointOnlineRate(DataCenterQuery query) {
        return Result.ok().data(dataCenterService.videoPointOnlineRate(query));
        return dataCenterService.videoPointOnlineRate(query);
    }
    /**
@@ -40,7 +58,7 @@
     */
    @GetMapping("/videoOneMachineDocumentRegister")
    public Result videoOneMachineDocumentRegister(DataCenterQuery query) {
        return Result.ok().data(dataCenterService.videoOneMachineDocumentRegister(query));
        return dataCenterService.videoOneMachineDocumentRegister(query);
    }
    /**