|
|
@@ -15,7 +15,6 @@ import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
-import java.util.ArrayList;
|
|
|
import java.util.List;
|
|
|
|
|
|
/**
|
|
|
@@ -48,12 +47,9 @@ public class SysMenuController extends BaseController {
|
|
|
}
|
|
|
|
|
|
@DeleteMapping(value = "/delete/{id}")
|
|
|
- public HttpResult delete(@PathVariable("id") String id) {
|
|
|
+ public HttpResult<Boolean> delete(@PathVariable("id") String id) {
|
|
|
log.info("菜单删除:id=[{}]",id);
|
|
|
- List<String> ids = new ArrayList<>();
|
|
|
- ids.add(id);
|
|
|
- //List<String> ids = records.stream().map(SysMenu::getId).collect(Collectors.toList());
|
|
|
- return HttpResult.ok(sysMenuService.removeBatchByIds(ids));
|
|
|
+ return HttpResult.ok(sysMenuService.removeById(id));
|
|
|
}
|
|
|
|
|
|
|