CHENYIZONG 6 lat temu
rodzic
commit
e38abe55dc

+ 2 - 2
src/main/java/com/example/hotel/controller/hotel/HotelController.java

@@ -20,7 +20,7 @@ public class HotelController {
     public ResponseVO createHotel(@RequestBody HotelVO hotelVO) {
 
         hotelService.addHotel(hotelVO);
-        return ResponseVO.buildSuccess();
+        return ResponseVO.buildSuccess(true);
     }
 
     @GetMapping("/all")
@@ -31,7 +31,7 @@ public class HotelController {
     @PostMapping("/roomInfo")
     public ResponseVO addRoomInfo(@RequestBody HotelRoom hotelRoom) {
         hotelService.addHotelRoomInfo(hotelRoom);
-        return ResponseVO.buildSuccess();
+        return ResponseVO.buildSuccess(true);
     }
 
     @GetMapping("/{hotelId}/detail")