parent
efaa611cd4
commit
30cd6a0256
@ -0,0 +1,24 @@
|
|||||||
|
@RequestMapping("/getAttractionsById")
|
||||||
|
@ResponseBody
|
||||||
|
public Result getAttractionsById(String id) {
|
||||||
|
return ResultGenerator.genSuccessResult(systemService.getAttractionsById(id));
|
||||||
|
}
|
||||||
|
|
||||||
|
@RequestMapping("/updateAttractionsStatus")
|
||||||
|
@ResponseBody
|
||||||
|
public Result updateAttractionsStatus(String id) {
|
||||||
|
return systemService.updateAttractionsStatus(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
@RequestMapping("/saveAttractions")
|
||||||
|
@ResponseBody
|
||||||
|
public Result saveAttractions(Attractions attractions) {
|
||||||
|
return systemService.saveAttractions(attractions);
|
||||||
|
}
|
||||||
|
|
||||||
|
@RequestMapping("/travelRouteListUI")
|
||||||
|
public String travelRouteListUI(Model model, @PageableDefault(size = 10) Pageable pageable) {
|
||||||
|
Page<TravelRoute> page = systemService.getTravelRoutePage(pageable);
|
||||||
|
model.addAttribute("page", page);
|
||||||
|
return "system/route/list";
|
||||||
|
}
|
Loading…
Reference in new issue