书籍列表接口新增参数

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

@ -23,22 +23,29 @@ func (c *ControllerV1) AppDetail(ctx context.Context, req *v1.AppDetailReq) (res
return &v1.AppDetailRes{
Id: out.Id,
AuthorId: out.AuthorId,
CategoryId: out.CategoryId,
Title: out.Title,
CoverUrl: out.CoverUrl,
Rating: out.Rating,
Title: out.Title,
Description: out.Description,
AuthorId: out.AuthorId,
Author: out.Author,
CategoryId: out.CategoryId,
Category: out.Category,
Status: out.Status,
WordsCount: out.WordsCount,
ChaptersCount: out.ChaptersCount,
ReadCount: out.ReadCount,
CurrentReaders: out.CurrentReaders,
Tags: out.Tags,
IsRecommended: out.IsRecommended,
Rating: out.Rating,
CurrentReaders: out.CurrentReaders,
CreatedAt: out.CreatedAt.String(),
UpdatedAt: out.UpdatedAt.String(),
// 添加阅读进度信息
HasRead: out.HasRead,
ReadProgress: out.ReadProgress,
LastChapterId: out.LastChapterId,
LastReadAt: out.LastReadAt,
HasRated: out.HasRated,
MyRating: out.MyRating,
HasRead: out.HasRead,
ReadProgress: out.ReadProgress,
LastChapterId: out.LastChapterId,
LastReadAt: out.LastReadAt,
IsInBookshelf: out.IsInBookshelf,
}, nil
}