package com.cloud.user.controller;
|
import com.cloud.user.service.CameraService;
|
import io.swagger.annotations.Api;
|
import io.swagger.annotations.ApiImplicitParam;
|
import io.swagger.annotations.ApiImplicitParams;
|
import io.swagger.annotations.ApiOperation;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.http.MediaType;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestParam;
|
import org.springframework.web.bind.annotation.RestController;
|
|
import java.util.List;
|
import java.util.Map;
|
|
/**
|
* 设备表相关操作
|
*/
|
@Api(value = "CameraController", description = "设备表相关操作")
|
@RequestMapping("data/api-u")
|
@RestController
|
public class CameraController {
|
|
@Autowired
|
private CameraService cameraService;
|
|
|
//查找设备ID,名称集合
|
@RequestMapping("/cam/getCamInputList")
|
@ApiOperation(value = "查找设备ID,名称集合", notes = "查找设备ID,名称集合", httpMethod = "GET", produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
|
@ApiImplicitParams({
|
@ApiImplicitParam(name = "orgId", value = "学校ID", required = true, dataType = "String", paramType = "query")
|
})
|
public List<Map<String,Object>> getCameraInputList(@RequestParam("orgId") String orgId){
|
|
return cameraService.getCameraInputList(orgId);
|
}
|
|
}
|