package author type Repository interface { List(query ListQuery) (Page, error) Get(id uint32) (Author, error) GetBySlug(slug string) (Author, error) GetByUserID(userID uint32) (Author, error) Create(author Author) (Author, error) Update(author Author) (Author, error) DeleteMovingCredits(id uint32, reassignTo *uint32) error DeleteUncrediting(id uint32) error AvatarUsage() (map[uint32]int, error) ClearAvatar(imageID uint32) ([]uint32, error) AssignAvatar(authorIDs []uint32, imageID uint32) error RepointAvatar(fromImageIDs []uint32, toImageID uint32) (int, error) }