This commit is contained in:
make
2025-04-06 21:51:01 +08:00
commit 3792acd4c7
408 changed files with 42349 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
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 http from "@/api";
/**
* @name 视频列表
*/
export const getVideoList = (params: VideoList.ReqParams) => {
return http.get<ResPage<VideoList.ResList>>(getShipinMainListApiUrl, params);
};
/**
* @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);
};