feat:增加自动完成数据源
This commit is contained in:
parent
d0ea4d5143
commit
18f26cc8b7
@ -17,6 +17,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import reactor.core.publisher.Mono;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
@ -91,9 +92,9 @@ public abstract class BaseController<T extends Domain, Q extends Qo<T>> implemen
|
||||
|
||||
@DeleteMapping("{id}")
|
||||
@Operation.Delete
|
||||
public Result<T> remove(@PathVariable String id, @CurrentUser User user) {
|
||||
public Result<T> remove(@PathVariable List<String> id, @CurrentUser User user) {
|
||||
userContext.setUser(user);
|
||||
service.deleteById(id);
|
||||
service.deleteBatchByIds(id);
|
||||
return Result.ok();
|
||||
}
|
||||
|
||||
|
@ -255,7 +255,7 @@ public class BaseServiceImpl<T extends Domain> implements BaseService<T> {
|
||||
*/
|
||||
@Override
|
||||
public void deleteBatchByIds(List<String> ids) {
|
||||
ids.forEach(id -> repository.deleteById(id));
|
||||
ids.forEach(this::deleteById);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user