feat: update

This commit is contained in:
make
2025-05-06 16:59:07 +08:00
parent 57bc5d576a
commit 54c45a7ed0
19 changed files with 2237 additions and 513 deletions

View File

@@ -1,36 +1,24 @@
import { ResPage, ResultData } from "@/api/interface/index";
import { VideoList } from "@/api/interface/video/list";
import { VIDEO_PORT } from "@/api/config/servicePort";
import { getShipinMainListApiUrl, getShipinMainMrtjApiUrl, getShipinMainVipApiUrl } from "@/api/config";
import { getVideoListApiUrl, getVideoSetLevelApiUrl, getVideoSetBoxOfficeApiUrl } from "@/api/config";
import http from "@/api";
/**
* @name 视频列表
*/
export const getVideoList = (params: VideoList.ReqParams) => {
return http.get<ResPage<VideoList.ResList>>(getShipinMainListApiUrl, params);
return http.get<ResPage<VideoList.ResList>>(getVideoListApiUrl, params);
};
/**
* @name 批量设置视频推荐等级
*/
export const setLevel = (params: VideoList.delParams) => {
return http.post<ResPage<ResultData>>(getVideoSetLevelApiUrl, params);
};
/**
* @name 设置视频
* @name 批量设置视频票房
*/
export const saveData = (params: VideoList.saveParams) => {
return http.post<ResPage<ResultData>>(VIDEO_PORT + `/save`, params);
};
/**
* @name 批量设置视频
*/
export const batchData = (params: VideoList.delParams) => {
return http.post<ResPage<ResultData>>(getShipinMainMrtjApiUrl, params);
};
/**
* @name 批量设置vip视频
*/
export const batchVipData = (params: VideoList.delParams) => {
return http.post<ResPage<ResultData>>(getShipinMainVipApiUrl, params);
};
/**
* @name 删除视频
*/
export const deleteItem = (params: VideoList.delParams) => {
return http.post<ResPage<ResultData>>(VIDEO_PORT + `/del`, params);
export const setBoxOffice = (params: VideoList.delParams) => {
return http.post<ResPage<ResultData>>(getVideoSetBoxOfficeApiUrl, params);
};