package com.xt.hb.data.camera.ctl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.xt.hb.data.camera.model.CameraInfo;
import com.xt.hb.data.camera.svcimpl.CameraService;

/**
 * @author zhaoyong
 */
@Controller
@RequestMapping("/camera")
public class CameraController {

	@Autowired
	private CameraService cameraService;

	@ResponseBody
	@RequestMapping("/regionCameras")
	public List<CameraInfo> getCamerasByRegionId(String regionId) {
		return cameraService.getCameraInfoListByRegionId(regionId);
	}
}