package com.usky.sas.controller.web;

import com.usky.common.core.bean.ApiResult;
import com.usky.sas.service.SasVideoPatrolService;
import com.usky.sas.service.vo.PatrolConfigResponse;
import com.usky.sas.service.vo.VideoProtectionConfigResponse;
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;

/**
 * 视频导出防护 & 实时电子巡检 控制器
 *
 * GET /prod-api/service-sas/video/protection
 * GET /prod-api/service-sas/patrol/config
 */
@RestController
@RequestMapping
public class SasVideoPatrolController {

    @Autowired
    private SasVideoPatrolService sasVideoPatrolService;

    @GetMapping("/video/protection")
    public ApiResult<VideoProtectionConfigResponse> getVideoProtectionConfig() {
        return ApiResult.success(sasVideoPatrolService.getVideoProtectionConfig());
    }

    @GetMapping("/patrol/config")
    public ApiResult<PatrolConfigResponse> getPatrolConfig() {
        return ApiResult.success(sasVideoPatrolService.getPatrolConfig());
    }
}

