|
@@ -1,7 +1,7 @@
|
|
|
import http from '@/api'
|
|
|
import { Video2imageVO, Video2imageForm, Video2imageQuery } from '@/api/interface/demo/video2image'
|
|
|
/**
|
|
|
- * @name 查询【请填写功能名称】列表
|
|
|
+ * @name 查询视频转图片列表
|
|
|
* @param query 参数
|
|
|
* @returns 返回列表
|
|
|
*/
|
|
@@ -10,7 +10,7 @@ export const listVideo2imageApi = (query: Video2imageQuery) => {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * @name 查询【请填写功能名称】详细
|
|
|
+ * @name 查询视频转图片详细
|
|
|
* @param id id
|
|
|
* @returns returns
|
|
|
*/
|
|
@@ -19,7 +19,7 @@ export const getVideo2imageApi = (id: string | number) => {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * @name 新增【请填写功能名称】
|
|
|
+ * @name 新增视频转图片
|
|
|
* @param data data
|
|
|
* @returns returns
|
|
|
*/
|
|
@@ -28,7 +28,7 @@ export const addVideo2imageApi = (data: Video2imageForm) => {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * @name 修改【请填写功能名称】
|
|
|
+ * @name 修改视频转图片
|
|
|
* @param data data
|
|
|
* @returns returns
|
|
|
*/
|
|
@@ -37,7 +37,7 @@ export const updateVideo2imageApi = (data: Video2imageForm) => {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * @name 删除【请填写功能名称】
|
|
|
+ * @name 删除视频转图片
|
|
|
* @param id id
|
|
|
* @returns returns
|
|
|
*/
|
|
@@ -68,3 +68,27 @@ export const importVideo2imageDataApi = (data: any) => {
|
|
|
export const exportVideo2imageApi = (data: any) => {
|
|
|
return http.downloadPost('/demo/video2image/export', data)
|
|
|
}
|
|
|
+
|
|
|
+/**
|
|
|
+ * @name 上传视频
|
|
|
+ * @returns returns
|
|
|
+ */
|
|
|
+export const uploadVideoApi = (data: any) => {
|
|
|
+ return http.post('/demo/video2image/upload', data)
|
|
|
+}
|
|
|
+
|
|
|
+/**
|
|
|
+ * @name 开始视频转图片
|
|
|
+ * @returns returns
|
|
|
+ */
|
|
|
+export const startVideo2imageApi = (id: string | number) => {
|
|
|
+ return http.get('/demo/video2image/start/' + id)
|
|
|
+}
|
|
|
+
|
|
|
+/**
|
|
|
+ * @name 下载压缩包
|
|
|
+ * @returns returns
|
|
|
+ */
|
|
|
+export const downloadVideo2imageApi = (id: string | number) => {
|
|
|
+ return http.get('/demo/video2image/zip/' + id)
|
|
|
+}
|