liuxiaolong
2019-05-06 f99bc8c6a1d10610373738edd7d0aa0181c81d99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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);
    }
 
}