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:
chanx
2026-04-13 21:07:07 +08:00
committed by GitHub
parent 9a38af7cbf
commit 6ffa566ec3
13 changed files with 200 additions and 196 deletions

View File

@@ -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: [],