first
This commit is contained in:
36
src/api/modules/video/list.ts
Normal file
36
src/api/modules/video/list.ts
Normal 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);
|
||||
};
|
||||
Reference in New Issue
Block a user