feat: Authors feature backend (and upgraded deprecated mods)

This commit is contained in:
Florian Sylvain committed 2026-10-14 17:45:00 +02:00
1 parent a11338094e
commit b34a173d83
103 files changed
+6454 -240

No files matched your search

@@ -0,0 +1,16 @@
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)
}