package com.xt.hb.data.gps.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.gps.model.GpsInfo;
import com.xt.hb.data.gps.svc.GpsService;

@Controller
@RequestMapping("gps")
public class GpsCtl {
	@Autowired
	private GpsService gpsService;

	@RequestMapping("realtime")
	@ResponseBody
	public List<GpsInfo> getGPSRealTime() {
		return gpsService.getGPSRealTime();
	}
}
