|
|
@@ -93,7 +93,7 @@ public class HotelStaffController {
|
|
|
@AdminLoginCheck
|
|
|
@ParamCheck
|
|
|
@PutMapping("/update")
|
|
|
- public CommonResult<String> update(@RequestBody HotelStaffEntity hotelStaff){
|
|
|
+ public CommonResult<String> update(@RequestHeader("admin-token") String adminToken, @RequestBody HotelStaffEntity hotelStaff){
|
|
|
hotelStaff.setPassword(null);
|
|
|
boolean flag = hotelStaffService.updateById(hotelStaff);
|
|
|
|
|
|
@@ -109,7 +109,7 @@ public class HotelStaffController {
|
|
|
*/
|
|
|
@AdminLoginCheck
|
|
|
@DeleteMapping("/delete")
|
|
|
- public CommonResult<String> delete(@RequestBody Long[] ids){
|
|
|
+ public CommonResult<String> delete(@RequestHeader("admin-token") String adminToken, @RequestBody Long[] ids){
|
|
|
boolean flag = hotelStaffService.removeByIds(Arrays.asList(ids));
|
|
|
if (flag) {
|
|
|
return CommonResult.ok();
|