From 30cd6a025659e3d288fe2fd51226a09dc1de7378 Mon Sep 17 00:00:00 2001 From: p96aetpbr <2691443110@qq.com> Date: Wed, 26 Jun 2024 08:08:36 +0800 Subject: [PATCH] Add SystemController --- SystemController | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 SystemController diff --git a/SystemController b/SystemController new file mode 100644 index 0000000..7c99b36 --- /dev/null +++ b/SystemController @@ -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 page = systemService.getTravelRoutePage(pageable); + model.addAttribute("page", page); + return "system/route/list"; + } \ No newline at end of file