mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 20:34:37 +03:00
* Remove ID from PerformerPartial * Separate studio model from sqlite model * Separate movie model from sqlite model * Separate tag model from sqlite model * Separate saved filter model from sqlite model * Separate scene marker model from sqlite model * Separate gallery chapter model from sqlite model * Move ErrNoRows checks into sqlite, improve empty result error messages * Move SQLiteDate and SQLiteTimestamp to sqlite * Use changesetTranslator everywhere, refactor for consistency * Make PerformerStore.DestroyImage private * Fix rating on movie create
21 lines
603 B
Go
21 lines
603 B
Go
package models
|
|
|
|
import "context"
|
|
|
|
type GalleryChapterReader interface {
|
|
Find(ctx context.Context, id int) (*GalleryChapter, error)
|
|
FindMany(ctx context.Context, ids []int) ([]*GalleryChapter, error)
|
|
FindByGalleryID(ctx context.Context, galleryID int) ([]*GalleryChapter, error)
|
|
}
|
|
|
|
type GalleryChapterWriter interface {
|
|
Create(ctx context.Context, newGalleryChapter *GalleryChapter) error
|
|
Update(ctx context.Context, updatedGalleryChapter *GalleryChapter) error
|
|
Destroy(ctx context.Context, id int) error
|
|
}
|
|
|
|
type GalleryChapterReaderWriter interface {
|
|
GalleryChapterReader
|
|
GalleryChapterWriter
|
|
}
|