feat: es原生
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package com.landaiqing.subject.application.controller;
|
||||
|
||||
import com.landaiqing.subject.infra.basic.service.SubjectEsService;
|
||||
import com.landaiqing.subject.infra.entity.UserInfo;
|
||||
import com.landaiqing.subject.infra.rpc.UserRpc;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
@@ -23,10 +24,31 @@ public class TestFeignController {
|
||||
@Resource
|
||||
private UserRpc userRpc;
|
||||
|
||||
@Resource
|
||||
private SubjectEsService subjectEsService;
|
||||
@GetMapping("testFeign")
|
||||
public void testFeign() {
|
||||
UserInfo userInfo = userRpc.getUserInfo("jichi");
|
||||
log.info("testFeign.userInfo:{}", userInfo);
|
||||
}
|
||||
@GetMapping("testCreateIndex")
|
||||
public void testCreateIndex() {
|
||||
subjectEsService.createIndex();
|
||||
}
|
||||
|
||||
@GetMapping("addDoc")
|
||||
public void addDoc() {
|
||||
subjectEsService.addDocs();
|
||||
}
|
||||
|
||||
@GetMapping("find")
|
||||
public void find() {
|
||||
subjectEsService.find();
|
||||
}
|
||||
|
||||
@GetMapping("search")
|
||||
public void search() {
|
||||
subjectEsService.search();
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user