书籍列表接口新增参数
This commit is contained in:
@ -77,6 +77,7 @@ type ChapterAppItem struct {
|
||||
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" dc:"更新时间"`
|
||||
ReadProgress int `json:"readProgress" dc:"阅读进度百分比"`
|
||||
ReadAt *gtime.Time `json:"readAt" dc:"最后阅读时间"`
|
||||
IsPurchased bool `json:"isPurchased" dc:"用户是否已购买该章节"`
|
||||
}
|
||||
|
||||
type ChapterAppListOut struct {
|
||||
@ -121,6 +122,19 @@ type ChapterAppProgressIn struct {
|
||||
UserId int64 `json:"userId" dc:"用户ID"`
|
||||
}
|
||||
|
||||
// App 批量上传阅读进度输入参数
|
||||
type ChapterAppBatchProgressIn struct {
|
||||
BookId int64 `json:"bookId" dc:"书籍ID"`
|
||||
Chapters []ChapterProgressItem `json:"chapters" dc:"章节进度列表"`
|
||||
UserId int64 `json:"userId" dc:"用户ID"`
|
||||
}
|
||||
|
||||
// 章节进度项
|
||||
type ChapterProgressItem struct {
|
||||
ChapterId int64 `json:"chapterId" dc:"章节ID"`
|
||||
Progress int `json:"progress" dc:"阅读进度百分比"`
|
||||
}
|
||||
|
||||
// App 上传阅读进度输出结构体
|
||||
type ChapterAppProgressOut struct {
|
||||
Success bool `json:"success" dc:"是否成功"`
|
||||
|
||||
Reference in New Issue
Block a user