2025-03-26
This commit is contained in:
28
src/api/modules/videoList.ts
Normal file
28
src/api/modules/videoList.ts
Normal 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"
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user