feat:调整展示路径

This commit is contained in:
2026-05-18 23:42:38 +08:00
parent f553409544
commit 852cb7e7a6
5 changed files with 19 additions and 28 deletions

View File

@@ -4,6 +4,7 @@ import com.bruce.rag.entity.RagDocument;
import com.bruce.rag.service.IRagDocumentService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@@ -15,11 +16,8 @@ import java.util.List;
@RequestMapping("/api/rag/documents")
public class RagDocumentController {
private final IRagDocumentService ragDocumentService;
public RagDocumentController(IRagDocumentService ragDocumentService) {
this.ragDocumentService = ragDocumentService;
}
@Autowired
private IRagDocumentService ragDocumentService;
@Operation(summary = "查询全部知识库文档")
@GetMapping

View File

@@ -4,6 +4,7 @@ import com.bruce.rag.entity.RagStore;
import com.bruce.rag.service.IRagStoreService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@@ -15,11 +16,8 @@ import java.util.List;
@RequestMapping("/api/rag/stores")
public class RagStoreController {
private final IRagStoreService ragStoreService;
public RagStoreController(IRagStoreService ragStoreService) {
this.ragStoreService = ragStoreService;
}
@Autowired
private IRagStoreService ragStoreService;
@Operation(summary = "查询全部知识库")
@GetMapping