package com.chinaitop.depot.intelligent.grainNumberMonitor.controller;

import com.chinaitop.depot.intelligent.grainNumberMonitor.service.MonitorWarningService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @author qingsong.han
 * @description: 获取摄像头信息
 * @create 2019-02-27 15:45
 */
@RestController
@RequestMapping(value = "/intelligents/cameraVideo")
@Api(value = "CameraVideoController", description = "摄像头调用类")
public class CameraVideoController {

    @Resource
    private MonitorWarningService monitorWarningService;

    /**
     * 查找摄像头信息
     *
     * @param orgId 组织机构id
     * @return
     */
    @RequestMapping(value = "/getVideo", method = RequestMethod.GET)
    @ApiOperation(value = "查找摄像头信息信息", notes = "查找摄像头信息信息")
    public List<Map<String, Object>> getVideo(String orgId) {
        List<Map<String, Object>> list = monitorWarningService.getVideoInfo();
        return list;
    }

}
