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>(getXiaoZhangJieYouApiUrl, params); }; /** * @name 设置小说章节 */ export const saveData = (params: ChapterList.saveParams) => { return http.post>(NOVEL_PORT + `/chapter/save`, params); }; /** * @name 删除小说章节 */ export const deleteItem = (params: ChapterList.delParams) => { return http.post>(NOVEL_PORT + `/chapter/del`, params); };