mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-15 09:28:27 +08:00
Refactor: Standardize naming convention to camelCase (#14079)
### What problem does this PR solve? Refactor: Standardize naming convention to camelCase ### Type of change - [x] Refactoring
This commit is contained in:
@@ -78,7 +78,7 @@ export const useTestRetrieval = () => {
|
||||
|
||||
const mutation = useMutation<INextTestingResult, Error, typeof queryParams>({
|
||||
mutationFn: async (params) => {
|
||||
const { data } = await kbService.retrieval_test(params);
|
||||
const { data } = await kbService.retrievalTest(params);
|
||||
const result = data?.data ?? {};
|
||||
return { ...result, isRuned: true };
|
||||
},
|
||||
@@ -406,7 +406,7 @@ export const useFetchKnowledgeBaseConfiguration = (props?: {
|
||||
gcTime: 0,
|
||||
queryFn: async () => {
|
||||
if (isEdit) {
|
||||
const { data } = await kbService.get_kb_detail({
|
||||
const { data } = await kbService.getKbDetail({
|
||||
kb_id: knowledgeBaseId,
|
||||
});
|
||||
return data?.data ?? {};
|
||||
@@ -621,7 +621,7 @@ export const useTestChunkRetrieval = (): ResponsePostType<ITestingResult> & {
|
||||
mutationKey: ['testChunk'], // This method is invalid
|
||||
gcTime: 0,
|
||||
mutationFn: async (values: any) => {
|
||||
const { data } = await kbService.retrieval_test({
|
||||
const { data } = await kbService.retrievalTest({
|
||||
...values,
|
||||
kb_id: values.kb_id ?? knowledgeBaseId,
|
||||
page,
|
||||
@@ -665,7 +665,7 @@ export const useTestChunkAllRetrieval = (): ResponsePostType<ITestingResult> & {
|
||||
mutationKey: ['testChunkAll'], // This method is invalid
|
||||
gcTime: 0,
|
||||
mutationFn: async (values: any) => {
|
||||
const { data } = await kbService.retrieval_test({
|
||||
const { data } = await kbService.retrievalTest({
|
||||
...values,
|
||||
kb_id: values.kb_id ?? knowledgeBaseId,
|
||||
doc_ids: [],
|
||||
|
||||
Reference in New Issue
Block a user