1.排程管理新增企业微信通知功能
2.可用应用以及智能体显示只显示Chatflow类型应用
This commit is contained in:
1 parent
dc8ad4de52
commit
05913f742f
8 files changed
+264
-15
No files matched your search
@@ -68,6 +68,21 @@ async function getJson<T>(url: string): Promise<T> {
|
||||
export const listAdminSchedules = () =>
|
||||
getJson<ScheduleTask[]>('/api/admin/schedules');
|
||||
|
||||
export const exportAdminScheduleUrl = (taskId: number) => `/api/admin/schedules/${taskId}/export`;
|
||||
|
||||
export const importAdminSchedules = async (payload: any) => {
|
||||
const res = await fetch('/api/admin/schedules/import', {
|
||||
method: 'POST',
|
||||
headers: { 'Content-Type': 'application/json', ...getAuthHeaders() },
|
||||
body: JSON.stringify(payload),
|
||||
});
|
||||
if (!res.ok) {
|
||||
const data = await res.json().catch(() => ({}));
|
||||
throw new Error(data.error || 'Import failed');
|
||||
}
|
||||
return res.json();
|
||||
};
|
||||
|
||||
export const getAdminScheduleTaskConfig = (taskId: number) =>
|
||||
getJson<{ data_source_type: string; config: Record<string, any> | null }>(`/api/admin/schedule-config/${taskId}`);
|
||||
|
||||
|
||||
Reference in new issue
Block a user