mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-31 19:38:41 +00:00
add app
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
import { GET, POST, DELETE, PUT } from './request';
|
||||
import type { AppSchema } from '@/types/mongoSchema';
|
||||
import type { AppUpdateParams } from '@/types/app';
|
||||
import type { AppModuleItemType, AppUpdateParams } from '@/types/app';
|
||||
import { RequestPaging } from '../types/index';
|
||||
import type { AppListResponse } from './response/app';
|
||||
import type { Props as CreateAppProps } from '@/pages/api/app/create';
|
||||
|
||||
/**
|
||||
* 获取模型列表
|
||||
@@ -12,7 +13,7 @@ export const getMyModels = () => GET<AppListResponse>('/app/list');
|
||||
/**
|
||||
* 创建一个模型
|
||||
*/
|
||||
export const postCreateModel = (data: { name: string }) => POST<string>('/app/create', data);
|
||||
export const postCreateApp = (data: CreateAppProps) => POST<string>('/app/create', data);
|
||||
|
||||
/**
|
||||
* 根据 ID 删除模型
|
||||
|
Reference in New Issue
Block a user