// 书架相关接口

const api = {
	// 批量移除我书架过的数据根据书籍标识
	batchRemoveReadBook: {
		url: '/all_book/batchRemoveReadBook',
		method: 'GET',
		auth: true,
	},
	// 获取我书架过的书籍列表带分页
	getReadBookPage: {
		url: '/all_book/getReadBookPage',
		method: 'GET',
		auth: true,
	},
	// 移除我书架过的书籍根据书籍标识
	removeReadBook: {
		url: '/all_book/removeReadBook',
		method: 'GET',
		auth: true,
	},
	// 增加书架记录
	addReadBook: {
		url: '/all_book/addReadBook',
		method: 'POST',
		auth: true,
	},
	// 修改我的书籍信息
	saveOrUpdateReadBook: {
		url: '/all_book/saveOrUpdateReadBook',
		method: 'POST',
		auth: true,
	},
	// 查询这本书是否加入书架
	isAddBook: {
		url: '/all_book/isAddBook',
		method: 'GET',
	},
	// 根据书籍id删除书架
	deleteBookshelfByBookId: {
		url: '/all_book/deleteBookshelfByBookId',
		method: 'POST',
		auth: true,
	},
	// 根据书籍id获取当前阅读章节
	getReadChapterByBookId: {
		url: '/all_book/getReadChapterByBookId',
		method: 'GET',
	},
}

export default api 