调整
This commit is contained in:
parent
d9c7e6ff66
commit
605da4de4e
@ -1,18 +1,3 @@
|
||||
/*
|
||||
* Copyright 2019-2025 Tz
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package me.zhengjie.modules.system.rest;
|
||||
|
||||
import me.zhengjie.annotation.Log;
|
||||
@ -22,7 +7,10 @@ import me.zhengjie.modules.system.domain.dto.BusUserQueryCriteria;
|
||||
import me.zhengjie.modules.system.service.BusUserDeviceService;
|
||||
import me.zhengjie.modules.system.service.BusUserService;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
|
||||
import org.springframework.http.HttpStatus;
|
||||
import org.springframework.http.ResponseEntity;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
@ -87,4 +75,14 @@ public class BusUserController {
|
||||
return new ResponseEntity<>(HttpStatus.NO_CONTENT);
|
||||
}
|
||||
|
||||
@ApiOperation("删除用户")
|
||||
@DeleteMapping
|
||||
@PreAuthorize("@el.check('busUser:del')")
|
||||
public ResponseEntity<Object> deleteBusUser(@RequestBody Set<Long> ids){
|
||||
for (Long id : ids) {
|
||||
busUserService.removeById(id);
|
||||
}
|
||||
return new ResponseEntity<>(HttpStatus.OK);
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user