liriming
2025-03-03 8bb7160c9c4fd7ce5893ee673647b13cc35410ae
提交 | 用户 | 时间
3933d8 1 import request from '@/config/axios'
D 2
3 export const getPage = async (params) => {
4   return await request.get({ url: '/model/matlab/project/page', params })
5 }
6
7 export const getProject = async (id: number) => {
8   return await request.get({ url: '/model/matlab/project/' + id })
9 }
10
11 export const createProject = async (data) => {
12   return await request.post({ url: '/model/matlab/project', data: data })
13 }
14
15 export const updateProject = async (params) => {
16   return await request.put({ url: '/model/matlab/project', data: params })
17 }
18
19 export const deleteProject = async (id: number) => {
20   return await request.delete({ url: '/model/matlab/project?id=' + id })
21 }
22
23 export const list = () => {
24   return request.get({ url: '/model/packageProject/project/list'})
25 }
26
27 export const getProjectModel = async (params) => {
28   return await request.get({ url: '/model/matlab/project/getProjectModel', params })
29 }
30
31 export const publish = async (data) => {
32   return await request.post({ url: '/model/matlab/project/publish', data })
33 }