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