123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- package com.sf.service;
- import com.sf.dto.RestResp;
- import com.sf.dto.req.BookAddReqDto;
- import com.sf.dto.req.ChapterAddReqDto;
- import com.sf.dto.req.ChapterUpdateReqDto;
- import com.sf.dto.req.PageReqDto;
- import com.sf.dto.resp.BookChapterRespDto;
- import com.sf.dto.resp.BookInfoRespDto;
- import com.sf.dto.resp.ChapterContentRespDto;
- import com.sf.dto.resp.PageRespDto;
- public interface IAuthorBookService {
- /**
- * 小说信息保存
- *
- * @param dto 小说信息
- * @return void
- */
- RestResp<Void> saveBook(BookAddReqDto dto);
- /**
- * 小说章节信息保存
- *
- * @param dto 章节信息
- * @return void
- */
- RestResp<Void> saveBookChapter(ChapterAddReqDto dto);
- /**
- * 查询作家发布小说列表
- *
- * @param dto 分页请求参数
- * @return 小说分页列表数据
- */
- RestResp<PageRespDto<BookInfoRespDto>> listAuthorBooks(PageReqDto dto);
- /**
- * 查询小说发布章节列表
- *
- * @param bookId 小说ID
- * @param dto 分页请求参数
- * @return 章节分页列表数据
- */
- RestResp<PageRespDto<BookChapterRespDto>> listBookChapters(Long bookId, PageReqDto dto);
- /**
- * 小说章节删除
- *
- * @param chapterId 章节ID
- * @return void
- */
- RestResp<Void> deleteBookChapter(Long chapterId);
- /**
- * 小说章节查询
- *
- * @param chapterId 章节ID
- * @return 章节内容
- */
- RestResp<ChapterContentRespDto> getBookChapter(Long chapterId);
- /**
- * 小说章节更新
- *
- * @param chapterId 章节ID
- * @param dto 更新内容
- * @return void
- */
- RestResp<Void> updateBookChapter(Long chapterId, ChapterUpdateReqDto dto);
- }
|