mirror of
https://github.com/FreeeBird/hotel.git
synced 2025-05-06 19:49:26 +08:00
完成入住登记接口编写
This commit is contained in:
parent
c39dcd5dfa
commit
ab33c31665
@ -13,8 +13,12 @@ import java.util.List;
|
|||||||
@RequestMapping(value = "/checkIn")
|
@RequestMapping(value = "/checkIn")
|
||||||
public class CheckInController {
|
public class CheckInController {
|
||||||
|
|
||||||
|
private final CheckInService checkInService;
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private CheckInService checkInService;
|
public CheckInController(CheckInService checkInService) {
|
||||||
|
this.checkInService = checkInService;
|
||||||
|
}
|
||||||
|
|
||||||
@RequestMapping(value = "/add")
|
@RequestMapping(value = "/add")
|
||||||
public int addCheckIn(int peo_count, String persons, String ids){
|
public int addCheckIn(int peo_count, String persons, String ids){
|
||||||
@ -28,7 +32,7 @@ public class CheckInController {
|
|||||||
|
|
||||||
@RequestMapping(value = "/delete")
|
@RequestMapping(value = "/delete")
|
||||||
public int deleteCheckIn(int checkId){
|
public int deleteCheckIn(int checkId){
|
||||||
return checkInService.delete(checkId)
|
return checkInService.delete(checkId);
|
||||||
}
|
}
|
||||||
|
|
||||||
@RequestMapping(value = "/update")
|
@RequestMapping(value = "/update")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user