|
@@ -0,0 +1,19 @@
|
|
|
|
+package com.zhentao.hotel.controller;
|
|
|
|
+
|
|
|
|
+import com.zhentao.hotel.service.HoteldetailsService;
|
|
|
|
+import com.zhentao.vo.Result;
|
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
+import org.springframework.web.bind.annotation.PostMapping;
|
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
|
+
|
|
|
|
+@RestController
|
|
|
|
+@RequestMapping("hoteldetails")
|
|
|
|
+public class Hoteldetails_controller {
|
|
|
|
+ @Autowired
|
|
|
|
+ private HoteldetailsService service;
|
|
|
|
+ @PostMapping("findAll")
|
|
|
|
+ public Result findAll(){
|
|
|
|
+ return Result.OK(service.list(),"查询成功");
|
|
|
|
+ }
|
|
|
|
+}
|