Files
SEONexusAdmin/src/api/modules/video/list.ts
2025-05-06 17:34:15 +08:00

37 lines
1.1 KiB
TypeScript

import { ResPage, ResultData } from "@/api/interface/index";
import { VideoList } from "@/api/interface/video/list";
import { getVideoListApiUrl, getVideoSetLevelApiUrl, getVideoSetBoxOfficeApiUrl } from "@/api/config";
import http from "@/api";
/**
* @name 视频列表
*/
export const getVideoList = (params: VideoList.ReqParams) => {
return http.get<ResPage<VideoList.ResList>>(getVideoListApiUrl, params);
};
/**
* @name 批量设置视频推荐等级
*/
export const setLevel = (params: VideoList.delParams) => {
return http.post<ResPage<ResultData>>(getVideoSetLevelApiUrl, params);
};
/**
* @name 批量设置视频票房
*/
export const setBoxOffice = (params: VideoList.delParams) => {
return http.post<ResPage<ResultData>>(getVideoSetBoxOfficeApiUrl, params);
};
/**
* @name 批量设置视频推荐等级
*/
export const batchData = (params: VideoList.delParams) => {
return http.post<ResPage<ResultData>>(getVideoSetLevelApiUrl, params);
};
/**
* @name 批量设置视频推荐等级
*/
export const batchVipData = (params: VideoList.delParams) => {
return http.post<ResPage<ResultData>>(getVideoSetLevelApiUrl, params);
};