mirror of
https://github.com/FreeeBird/hotel.git
synced 2025-09-15 11:49:58 +08:00
update RoomType
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
package cn.mafangui.hotel.controller;
|
||||
|
||||
import cn.mafangui.hotel.entity.RoomType;
|
||||
import cn.mafangui.hotel.service.RoomTypeService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
@RestController
|
||||
@RequestMapping(value = "/roomType")
|
||||
public class RoomTypeController {
|
||||
|
||||
@Autowired
|
||||
private RoomTypeService roomTypeService;
|
||||
|
||||
@RequestMapping(value = "/add")
|
||||
public int addNewType(int roomType,String typeName,double bookingPrice,double bookingDiscount){
|
||||
RoomType rt = new RoomType(roomType,typeName,bookingPrice,bookingDiscount);
|
||||
return roomTypeService.addRoomType(rt);
|
||||
}
|
||||
|
||||
public int delType(int roomType,String typeName){
|
||||
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user