mirror of
https://github.com/labring/FastGPT.git
synced 2025-08-01 03:48:24 +00:00
fix: add delete all input guide lexicon button (#2241)
* fix: add delete all input guide lexicon button * fix * fix permisstion
This commit is contained in:
@@ -12,11 +12,12 @@ import type {
|
||||
createInputGuideResponse
|
||||
} from '@/pages/api/core/chat/inputGuide/create';
|
||||
import type { updateInputGuideBody } from '@/pages/api/core/chat/inputGuide/update';
|
||||
import type { deleteChatInputGuideQuery } from '@/pages/api/core/chat/inputGuide/delete';
|
||||
import type { deleteInputGuideBody } from '@/pages/api/core/chat/inputGuide/delete';
|
||||
import type {
|
||||
QueryChatInputGuideBody,
|
||||
QueryChatInputGuideResponse
|
||||
} from '@/pages/api/core/chat/inputGuide/query';
|
||||
import { deleteAllInputGuideBody } from '@/pages/api/core/chat/inputGuide/deleteAll';
|
||||
|
||||
export const getCountChatInputGuideTotal = (data: countChatInputGuideTotalQuery) =>
|
||||
GET<countChatInputGuideTotalResponse>(`/core/chat/inputGuide/countTotal`, data);
|
||||
@@ -39,5 +40,7 @@ export const postChatInputGuides = (data: createInputGuideBody) =>
|
||||
POST<createInputGuideResponse>(`/core/chat/inputGuide/create`, data);
|
||||
export const putChatInputGuide = (data: updateInputGuideBody) =>
|
||||
PUT(`/core/chat/inputGuide/update`, data);
|
||||
export const delChatInputGuide = (data: deleteChatInputGuideQuery) =>
|
||||
export const delChatInputGuide = (data: deleteInputGuideBody) =>
|
||||
POST(`/core/chat/inputGuide/delete`, data);
|
||||
export const delAllChatInputGuide = (data: deleteAllInputGuideBody) =>
|
||||
POST(`/core/chat/inputGuide/deleteAll`, data);
|
||||
|
Reference in New Issue
Block a user