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,7 +1,7 @@
// 登录
export const loginApiUrl = "/guest/login";
// 配置
// 配置
export const getSystemConfigListApiUrl = "/system/config/list";
export const getSystemConfigSaveApiUrl = "/system/config/save";
@@ -23,23 +23,22 @@ export const getSystemUserInfoApiUrl = "/system/user/info";
export const getSystemUserlistApiUrl = "/system/user/list";
// 视频分类 /shipin/fenlei/list?page=1&limit=10&key=
export const getShipinFenleiApiUrl = "/shipin/fenlei/list";
// 视频列表 /shipin/main/list?page=1&limit=10&key=
export const getShipinMainListApiUrl = "/shipin/main/list";
export const getVideoCategoryApiUrl = "/video/category/list";
export const getVideoListApiUrl = "/video/list";
// 视频列表 -批量设置每日推荐视频
export const getShipinMainMrtjApiUrl = "/shipin/main/mrtj";
export const getShipinMainVipApiUrl = "/shipin/main/vip";
export const getVideoSetLevelApiUrl = "/video/level/set";
export const getVideoSetBoxOfficeApiUrl = "/video/boxoffice/set";
// seo关键词
export const getKeyWordListApiUrl = "/system/keyword/list";
export const getKeyWordSaveApiUrl = "/system/keyword/save";
export const getKeyWordDelApiUrl = "/system/keyword/del";
// 小说分类
// 小说分类
export const getXiaoShuoFenleiApiUrl = "/novel/category/list";
// 小说章节
// 小说章节
export const getXiaoZhangJieYouApiUrl = "/xiaoshuo/zhangjie/list";
// 小说列表
// 小说列表
export const getXiaoShuoMainListApiUrl = "/novel/list";
// 广告分组 /guanggao/main/group/list?page=1&limit=10&key=
@@ -67,7 +66,6 @@ export const getGuangGaoMainSaveApiUrl = "/guanggao/main/save";
// 删除广告 /guanggao/main/group/del 传参form-data 参数 gg_id
export const getGuangGaoMainDelApiUrl = "/guanggao/main/del";
// 参数模板列表
export const getTkdargListUrl = "/site/tkdarg/list";
@@ -77,6 +75,3 @@ export const getTemplateListUrl = "/site/template/list";
export const getSubjectFomartGroupList = "/site/subject/fomart/group/list";
// 替换模板列表
export const getSubjectFomartList = "/site/subject/fomart/list";

View File

@@ -1,15 +1,15 @@
import { ResPage } from "@/api/interface/index";
import { fenLeiList } from "@/api/interface/video/fenlei";
import { getShipinFenleiApiUrl } from "@/api/config";
import { getVideoCategoryApiUrl } from "@/api/config";
import http from "@/api";
/**
* @name 视频分类
*/
export const getList = (params: fenLeiList.ReqParams) => {
return http.get<ResPage<fenLeiList.ResList>>(getShipinFenleiApiUrl, params);
return http.get<ResPage<fenLeiList.ResList>>(getVideoCategoryApiUrl, params);
};
export const getAllList = () => {
return http.get<ResPage<fenLeiList.ResList>>(getShipinFenleiApiUrl, { limit: 1000, page: 1 });
return http.get<ResPage<fenLeiList.ResList>>(getVideoCategoryApiUrl, { limit: 1000, page: 1 });
};

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);
};