12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- import http from '@/api'
- import { VideoStableVO, VideoStableForm, VideoStableQuery } from '@/api/interface/demo/videoStable'
- /**
- * @name 查询视频去抖动列表
- * @param query 参数
- * @returns 返回列表
- */
- export const listVideoStableApi = (query: VideoStableQuery) => {
- return http.get<VideoStableVO[]>('/demo/videoStable/list', query, { loading: true })
- }
- /**
- * @name 查询视频去抖动详细
- * @param id id
- * @returns returns
- */
- export const getVideoStableApi = (id: string | number) => {
- return http.get<VideoStableVO>(`/demo/videoStable/${id}`)
- }
- /**
- * @name 新增视频去抖动
- * @param data data
- * @returns returns
- */
- export const addVideoStableApi = (data: VideoStableForm) => {
- return http.post<any>('/demo/videoStable', data, { loading: false })
- }
- /**
- * @name 修改视频去抖动
- * @param data data
- * @returns returns
- */
- export const updateVideoStableApi = (data: VideoStableForm) => {
- return http.put<any>('/demo/videoStable', data, { loading: false })
- }
- /**
- * @name 删除视频去抖动
- * @param id id
- * @returns returns
- */
- export const delVideoStableApi = (id: string | number | Array<string | number>) => {
- return http.delete<any>(`/demo/videoStable/${id}`)
- }
- /**
- * @name 下载模板
- * @returns returns
- */
- export const importTemplateApi = () => {
- return http.downloadPost('/demo/videoStable/importTemplate', {})
- }
- /**
- * @name 导入数据
- * @returns returns
- */
- export const importVideoStableDataApi = (data: any) => {
- return http.post('/demo/videoStable/importData', data)
- }
- /**
- * @name 导出数据
- * @returns returns
- */
- export const exportVideoStableApi = (data: any) => {
- return http.downloadPost('/demo/videoStable/export', data)
- }
- export const startVideoStableApi = (id: String | Number) => {
- return http.get('/demo/videoStable/start/' + id)
- }
- export const stopVideoStableApi = (id: String | Number) => {
- return http.get('/demo/videoStable/stop/' + id)
- }
- export const getCompareImageApi = (taskId: String, idx: String | Number) => {
- return http.get('/demo/videoStable/compare/' + taskId + '/' + idx)
- }
- export const getCompareImageCountApi = (taskId: String | Number) => {
- return http.get('/demo/videoStable/compare/num/' + taskId)
- }
- export const getImagesApi = (ossid: String | Number) => {
- return http.get('/demo/videoStable/images/' + ossid)
- }
|