完善功能

This commit is contained in:
2025-07-16 15:16:40 +08:00
parent b2871ec0d2
commit f68a5b360b
123 changed files with 4643 additions and 931 deletions

View File

@ -14,9 +14,20 @@ type (
IChapter interface {
// List retrieves a paginated list of chapters
List(ctx context.Context, in *model.ChapterListIn) (out *model.ChapterListOut, err error)
// Create creates a new chapter
Create(ctx context.Context, in *model.ChapterAddIn) (out *model.ChapterCRUDOut, err error)
// Update updates an existing chapter
Update(ctx context.Context, in *model.ChapterEditIn) (out *model.ChapterCRUDOut, err error)
// Delete deletes a chapter by ID
Delete(ctx context.Context, in *model.ChapterDelIn) (out *model.ChapterCRUDOut, err error)
// AppList retrieves chapter list for app without content
AppList(ctx context.Context, in *model.ChapterAppListIn) (out *model.ChapterAppListOut, err error)
// AppDetail retrieves chapter detail for app
AppDetail(ctx context.Context, in *model.ChapterAppDetailIn) (out *model.ChapterAppDetailOut, err error)
// AppPurchase purchases chapter for app
AppPurchase(ctx context.Context, in *model.ChapterAppPurchaseIn) (out *model.ChapterAppPurchaseOut, err error)
// AppProgress uploads reading progress for app
AppProgress(ctx context.Context, in *model.ChapterAppProgressIn) (out *model.ChapterAppProgressOut, err error)
}
)