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,25 @@
import { ResPage, ResultData } from "@/api/interface/index";
import { ChapterList } from "@/api/interface/novel/chapter";
import { NOVEL_PORT } from "@/api/config/servicePort";
import { getXiaoZhangJieYouApiUrl } from "@/api/config";
import http from "@/api";
/**
* @name 小说章节列表
*/
export const getList = (params: ChapterList.ReqParams) => {
return http.get<ResPage<ChapterList.ResList>>(getXiaoZhangJieYouApiUrl, params);
};
/**
* @name 设置小说章节
*/
export const saveData = (params: ChapterList.saveParams) => {
return http.post<ResPage<ResultData>>(NOVEL_PORT + `/chapter/save`, params);
};
/**
* @name 删除小说章节
*/
export const deleteItem = (params: ChapterList.delParams) => {
return http.post<ResPage<ResultData>>(NOVEL_PORT + `/chapter/del`, params);
};