dengzedong
2025-03-20 92bd050e17545e16b045fa8407dc1640791f21e4
src/api/model/mpk/mpk.ts
@@ -10,7 +10,8 @@
  pyModule: string
  remark?: string
  modelMethods: object
  filePath: string
  filePath: string,
  menuAndGroup: any
}
export const getPage = async (params: PageParam) => {
@@ -38,9 +39,17 @@
}
export const modelRun = (params) => {
  return request.post({ url: '/model/mpk/api/run', data: params })
  return request.post({ url: '/model/mpk/api/test', data: params, timeout: 20 * 60 * 1000 })
}
export const list = () => {
  return request.get({ url: '/model/mpk/file/list'})
export const saveModel = (data) => {
  return request.downloadByPost({ url: '/model/mpk/api/saveModel', data })
}
export const list = (params) => {
  return request.get({ url: '/model/mpk/file/list',  params})
}
export const publish = (params) => {
  return request.post({ url: '/model/mpk/file/publish', data: params})
}