1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- import http from '@/api'
- import { AlgorithmModelTrackVO, AlgorithmModelTrackForm, AlgorithmModelTrackQuery } from '@/api/interface/demo/AlgorithmModelTrack'
- /**
- * @name 查询算法模型配置列表
- * @param query 参数
- * @returns 返回列表
- */
- export const listAlgorithmModelTrackApi = (query: AlgorithmModelTrackQuery) => {
- return http.get<AlgorithmModelTrackVO[]>('/demo/AlgorithmModelTrack/list', query, { loading: true })
- }
- /**
- * @name 查询算法模型配置详细
- * @param id id
- * @returns returns
- */
- export const getAlgorithmModelTrackApi = (id: string | number) => {
- return http.get<AlgorithmModelTrackVO>(`/demo/AlgorithmModelTrack/${id}`)
- }
- /**
- * @name 新增算法模型配置
- * @param data data
- * @returns returns
- */
- export const addAlgorithmModelTrackApi = (data: AlgorithmModelTrackForm) => {
- return http.post<any>('/demo/AlgorithmModelTrack', data, { loading: false })
- }
- /**
- * @name 修改算法模型配置
- * @param data data
- * @returns returns
- */
- export const updateAlgorithmModelTrackApi = (data: AlgorithmModelTrackForm) => {
- return http.put<any>('/demo/AlgorithmModelTrack', data, { loading: false })
- }
- /**
- * @name 删除算法模型配置
- * @param id id
- * @returns returns
- */
- export const delAlgorithmModelTrackApi = (id: string | number | Array<string | number>) => {
- return http.delete<any>(`/demo/AlgorithmModelTrack/${id}`)
- }
- /**
- * @name 下载模板
- * @returns returns
- */
- export const importTemplateApi = () => {
- return http.downloadPost('/demo/AlgorithmModelTrack/importTemplate', {})
- }
- /**
- * @name 导入数据
- * @returns returns
- */
- export const importAlgorithmModelTrackDataApi = (data: any) => {
- return http.post('/demo/AlgorithmModelTrack/importData', data)
- }
- /**
- * @name 导出数据
- * @returns returns
- */
- export const exportAlgorithmModelTrackApi = (data: any) => {
- return http.downloadPost('/demo/AlgorithmModelTrack/export', data)
- }
- export const enumAlgorithmModelTrackApi = () => {
- return http.get('/demo/AlgorithmModelTrack/enums')
- }
|