mirror of
https://github.com/labring/FastGPT.git
synced 2025-08-02 12:48:30 +00:00
4.8-preview fix (#1324)
* feishu app release (#85) * Revert "lafAccount add pat & re request when token invalid (#76)" (#77) This reverts commit 83d85dfe37adcaef4833385ea52ee79fd84720be. * perf: workflow ux * system config * feat: feishu app release * chore: sovle the conflicts files; fix the feishu entry * fix: rename Feishu interface to FeishuType * fix: fix type problem in app.ts * fix: type problem * fix: style problem --------- Co-authored-by: Archer <545436317@qq.com> * perf: publish channel code * change system variable position (#94) * perf: workflow context * perf: variable select * hide publish * perf: simple edit auto refresh * perf: simple edit data refresh * fix: target handle --------- Co-authored-by: Finley Ge <32237950+FinleyGe@users.noreply.github.com> Co-authored-by: heheer <71265218+newfish-cmyk@users.noreply.github.com>
This commit is contained in:
@@ -1,26 +1,40 @@
|
||||
import { GET, POST, DELETE } from '@/web/common/api/request';
|
||||
import type { OutLinkEditType, OutLinkSchema } from '@fastgpt/global/support/outLink/type.d';
|
||||
|
||||
/**
|
||||
* create a shareChat
|
||||
*/
|
||||
export const createShareChat = (
|
||||
data: OutLinkEditType & {
|
||||
// create a shareChat
|
||||
export function createShareChat<T>(
|
||||
data: OutLinkEditType<T> & {
|
||||
appId: string;
|
||||
type: OutLinkSchema['type'];
|
||||
}
|
||||
) => POST<string>(`/support/outLink/create`, data);
|
||||
) {
|
||||
return POST<string>(`/support/outLink/create`, data);
|
||||
}
|
||||
|
||||
export const putShareChat = (data: OutLinkEditType) =>
|
||||
POST<string>(`/support/outLink/update`, data);
|
||||
|
||||
/**
|
||||
* get shareChat
|
||||
*/
|
||||
export const getShareChatList = (appId: string) =>
|
||||
GET<OutLinkSchema[]>(`/support/outLink/list`, { appId });
|
||||
// get shareChat
|
||||
export function getShareChatList<T>(data: { appId: string; type: OutLinkSchema<T>['type'] }) {
|
||||
return GET<OutLinkSchema<T>[]>(`/support/outLink/list`, data);
|
||||
}
|
||||
|
||||
/**
|
||||
* delete a shareChat
|
||||
*/
|
||||
export const delShareChatById = (id: string) => DELETE(`/support/outLink/delete?id=${id}`);
|
||||
// delete a shareChat
|
||||
export function delShareChatById(id: string) {
|
||||
return DELETE(`/support/outLink/delete?id=${id}`);
|
||||
}
|
||||
|
||||
// update a shareChat
|
||||
export function updateShareChat<T>(data: OutLinkEditType<T>) {
|
||||
return POST<string>(`/support/outLink/update`, data);
|
||||
}
|
||||
|
||||
// /**
|
||||
// * create a shareChat
|
||||
// */
|
||||
// export const createWecomLinkChat = (
|
||||
// data: OutLinkConfigEditType & {
|
||||
// appId: string;
|
||||
// type: OutLinkSchema['type'];
|
||||
// }
|
||||
// ) => POST<string>(`/support/outLink/create`, data);
|
||||
|
@@ -57,7 +57,7 @@ export const useSendCode = () => {
|
||||
}
|
||||
setCodeSending(false);
|
||||
},
|
||||
[codeCountDown, toast]
|
||||
[codeCountDown, feConfigs?.googleClientVerKey, toast]
|
||||
);
|
||||
|
||||
return {
|
||||
|
Reference in New Issue
Block a user