SampleController.java 695 Bytes
package com.bsth.controller.forecast;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.bsth.controller.BaseController;
import com.bsth.entity.forecast.Sample;
import com.bsth.service.forecast.SampleService;

@RestController
@RequestMapping("sample")
public class SampleController extends BaseController<Sample, Long>{

	@Autowired
	SampleService sampleService;
	
	@RequestMapping("/create/gps")
	public int createDataByGps(String lineCode, Integer updown){
		return sampleService.createDataByGps(lineCode, updown);
	}
}