|
@@ -134,7 +134,7 @@ public class ElasticSearchController {
|
|
@GetMapping("/getAll")
|
|
@GetMapping("/getAll")
|
|
public String getAll(@RequestParam(value = "page") int page, @RequestParam(value = "size") int size) {
|
|
public String getAll(@RequestParam(value = "page") int page, @RequestParam(value = "size") int size) {
|
|
PageRequest pageable = PageRequest.of(page, size);
|
|
PageRequest pageable = PageRequest.of(page, size);
|
|
- Page<HelloEntity> all = helloDao.findAll(pageable);
|
|
|
|
|
|
+ Page<EsDocInfo> all = esDocInfoService.findAll(pageable);
|
|
return JSON.toJSONString(all);
|
|
return JSON.toJSONString(all);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -146,7 +146,7 @@ public class ElasticSearchController {
|
|
*/
|
|
*/
|
|
@DeleteMapping("/{id}")
|
|
@DeleteMapping("/{id}")
|
|
public String delete(@PathVariable(value = "id") Long id) {
|
|
public String delete(@PathVariable(value = "id") Long id) {
|
|
- helloDao.deleteById(id);
|
|
|
|
|
|
+ esDocInfoService.deleteById(id);
|
|
return "success";
|
|
return "success";
|
|
}
|
|
}
|
|
|
|
|