书籍列表接口新增参数

This commit is contained in:
2025-08-13 15:19:42 +08:00
parent 6ccc87f2bf
commit 8afe651c64
201 changed files with 6987 additions and 1066 deletions

View File

@ -11,11 +11,10 @@ import (
func (c *ControllerV1) AppProgress(ctx context.Context, req *v1.AppProgressReq) (res *v1.AppProgressRes, err error) {
userId := g.RequestFromCtx(ctx).GetCtxVar("id").Int64()
out, err := service.Chapter().AppProgress(ctx, &model.ChapterAppProgressIn{
BookId: req.BookId,
ChapterId: req.ChapterId,
Progress: req.Progress,
UserId: userId,
out, err := service.Chapter().AppBatchProgress(ctx, &model.ChapterAppBatchProgressIn{
BookId: req.BookId,
Chapters: req.Chapters,
UserId: userId,
})
if err != nil {
return nil, err