zhanghua
2024-11-21 ca0c92a05c8be10ada67ed30aa71e9a3037b3db1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
 
 
import request from '@/utils/request';
import commonUtil from "@/utils/common"
 
// 获取模型数据
export const getModelLists = (data) => {
    return request({
      url: '/model/manage/modelLists',
      method: 'post',
      data: commonUtil.objectToFormData(data)
    })
}
 
// 添加模型数据
 
export const addModel = (data) => {
    return request({
      url: '/model/manage/add',
      method: 'post',
      data
    })
}
 
// 发布
 
export const publishModelById = id => {
  return request({
    url: `/model/manage/deploy/${id}`,
    method: 'post',
  });
}
 
// 删除
 
export const deleteModelById = id => {
  return request({
    url: `/model/manage/remove/${id}`,
    method: 'post',
  });
}