feat: update
This commit is contained in:
@@ -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);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user