| 1234567891011121314151617181920212223242526 |
- // 阅读历史相关API
- const api = require('../utils/api');
- // 添加阅读历史
- function addHistory(contentId) {
- return api.post('/app/history/add', { contentId }, true);
- }
- // 获取阅读历史列表
- function getHistoryList() {
- return api.get('/app/history/list', {}, true);
- }
- // 清空阅读历史
- function clearHistory() {
- return api.del('/app/history/clear', {}, true);
- }
- module.exports = {
- addHistory,
- getHistoryList,
- clearHistory
- };
|