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>(getVideoListApiUrl, params); }; /** * @name 批量设置视频推荐等级 */ export const setLevel = (params: VideoList.delParams) => { return http.post>(getVideoSetLevelApiUrl, params); }; /** * @name 批量设置视频票房 */ export const setBoxOffice = (params: VideoList.delParams) => { return http.post>(getVideoSetBoxOfficeApiUrl, params); }; /** * @name 批量设置视频推荐等级 */ export const batchData = (params: VideoList.delParams) => { return http.post>(getVideoSetLevelApiUrl, params); }; /** * @name 批量设置视频推荐等级 */ export const batchVipData = (params: VideoList.delParams) => { return http.post>(getVideoSetLevelApiUrl, params); };