From fd8ab76425124d3e38da21128241cc64c1e472f7 Mon Sep 17 00:00:00 2001 From: p96aetpbr <2691443110@qq.com> Date: Wed, 26 Jun 2024 08:32:49 +0800 Subject: [PATCH] Add SystemController.java --- SystemController.java | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 SystemController.java diff --git a/SystemController.java b/SystemController.java new file mode 100644 index 0000000..406202d --- /dev/null +++ b/SystemController.java @@ -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