You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

91 lines
2.8 KiB
TypeScript

/*
* @Author: donghao donghao@supervision.ltd
* @Date: 2024-05-24 17:57:19
* @LastEditors: donghao donghao@supervision.ltd
* @LastEditTime: 2024-05-30 14:58:40
* @FilePath: \general-ai-platform-web\src\services\business\model.ts
* @Description: api
*/
// @ts-ignore
/* eslint-disable */
import { request } from '@umijs/max';
/** 企业业务模型部署 */
// 添加企业部署的业务模型
export async function apiModelDeploymentAdd(body: any, options?: { [key: string]: any }) {
return request<API.Response & { data?: API.ENTITY_INDEX_DATA; msg?: string }>(
`/api/v1/model/deployment/add`,
{
method: 'POST',
headers: {
// 'Content-Type': 'application/json',
// "Content-Type": "application/x-www-form-urlencoded; charset=UTF-8"
},
data: body,
...(options || {}),
},
);
}
// 编辑企业部署的业务模型
export async function apiModelDeploymentEdit(body: any, options?: { [key: string]: any }) {
return request<API.Response & { data?: API.ENTITY_INDEX_DATA; msg?: string }>(
`/api/v1/model/deployment/edit`,
{
method: 'POST',
headers: {
// 'Content-Type': 'application/json',
// "Content-Type": "application/x-www-form-urlencoded; charset=UTF-8"
},
data: body,
...(options || {}),
},
);
}
// 企业部署的业务模型列表
export async function apiModelDeploymentList(body: any, options?: { [key: string]: any }) {
return request<API.Response & { data?: API.ENTITY_INDEX_DATA; msg?: string }>(
`/api/v1/model/deployment/list`,
{
method: 'POST',
headers: {
// 'Content-Type': 'application/json',
// "Content-Type": "application/x-www-form-urlencoded; charset=UTF-8"
},
data: body,
...(options || {}),
},
);
}
// // 删除企业部署的业务模型
// export async function apiModelDeploymentDelete(body: any, options?: { [key: string]: any }) {
// return request<API.Response & { data?: API.ENTITY_INDEX_DATA; msg?: string }>(
// `/api/v1/model/deployment/delete`,
// {
// method: 'POST',
// headers: {
// // 'Content-Type': 'application/json',
// // "Content-Type": "application/x-www-form-urlencoded; charset=UTF-8"
// },
// data: body,
// ...(options || {}),
// },
// );
// }
// 企业部署的业务模型信息
export async function apiModelDeploymentInfo(body: any, options?: { [key: string]: any }) {
return request<API.Response & { data?: API.ENTITY_INDEX_DATA; msg?: string }>(
`/api/v1/model/deployment/info`,
{
method: 'POST',
headers: {
// 'Content-Type': 'application/json',
// "Content-Type": "application/x-www-form-urlencoded; charset=UTF-8"
},
data: body,
...(options || {}),
},
);
}