API package refactor

This commit is contained in:
Manuel Forcén Muñoz 2025-02-12 19:29:00 +01:00
parent a7cd86962e
commit bc6b57bc54
14 changed files with 474 additions and 416 deletions

9
core/errors.go Normal file
View file

@ -0,0 +1,9 @@
package core
import "errors"
var (
ErrNotMember = errors.New("User is not member of plan")
ErrNotFound = errors.New("Resource is not found")
ErrInvalidOption = errors.New("Option is not a valid one for this poll")
)