2025-03-26

This commit is contained in:
2025-03-26 11:00:21 +08:00
parent 927d7381b8
commit b45f4950d3
468 changed files with 54473 additions and 124 deletions

View File

@@ -0,0 +1,28 @@
import http from "@/api";
const VIDEO = `/video`;
// 视频分页列表
export const getVideoListApi = (params: any) => {
return http.get<any>(`${VIDEO}/index`, params);
};
//视频详情
export const getVideoReadApi = (params: any) => {
return http.get<any>(`${VIDEO}/read/${params}`);
};
//视频保存
export const getVideoSaveApi = (params: any) => {
return http.post<any>(`${VIDEO}/save`, params);
};
//视频更新
export const getVideoUpdateApi = (params: any) => {
return http.put<any>(`${VIDEO}/update/${params.id}`, params);
};
//视频删除
export const getVideoListDelApi = (params: any) => {
return http.delete<any>(`${VIDEO}/delete/${params}`);
};
//视频导出
export const getVideoListExportApi = (params: any) => {
return http.get<any>(`${VIDEO}/export`, params, {
responseType: "arraybuffer"
});
};