26 lines
810 B
TypeScript
26 lines
810 B
TypeScript
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);
|
|
};
|