| 1234567891011121314151617181920212223242526272829 |
- // 章节相关API
- const api = require('../utils/api');
- // 获取电子书章节列表
- function getBookChapterList(contentId) {
- return api.get(`/app/book-chapter/list/${contentId}`);
- }
- // 获取电子书章节详情
- function getBookChapter(chapterId) {
- return api.get(`/app/book-chapter/${chapterId}`);
- }
- // 获取听书章节列表
- function getAudioChapterList(contentId) {
- return api.get(`/app/audio-chapter/list/${contentId}`);
- }
- // 获取听书章节详情
- function getAudioChapter(audioId) {
- return api.get(`/app/audio-chapter/${audioId}`);
- }
- module.exports = {
- getBookChapterList,
- getBookChapter,
- getAudioChapterList,
- getAudioChapter
- };
|