CarParkRealController.java
1.08 KB
package com.bsth.controller.real;
import com.bsth.data.real_park.CarParkRealHandler;
import com.bsth.entity.real.RealCarPark;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import java.util.Collection;
import java.util.Map;
/**
* Created by panzhao on 2017/9/14.
*/
@RestController
@RequestMapping("car_park_real")
public class CarParkRealController {
@RequestMapping("bus")
public Collection<RealCarPark> busAll(){
return CarParkRealHandler.allBus();
}
@RequestMapping(value = "real_change", method = RequestMethod.POST)
public Map<String, Object> realChange(@RequestParam String s, @RequestParam String d){
return CarParkRealHandler.realChange(s, d);
}
@RequestMapping(value = "clear_berth", method = RequestMethod.POST)
public Map<String, Object> clear_berth(@RequestParam String b){
return CarParkRealHandler.clear_berth(b);
}
}