书籍列表接口新增参数
This commit is contained in:
@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user