16 lines
578 B
Go
16 lines
578 B
Go
// Package domain contains pure domain models with no external dependencies.
|
|
// These types represent the core business concepts of the service.
|
|
package domain
|
|
|
|
import "errors"
|
|
|
|
// Domain errors - these are business-level errors that should be translated
|
|
// to appropriate HTTP status codes by the handler layer.
|
|
var (
|
|
// ErrInvalidUserID indicates the user ID is invalid.
|
|
ErrInvalidUserID = errors.New("invalid user ID")
|
|
|
|
// ErrInvalidPreferenceValue indicates one or more preference values are invalid.
|
|
ErrInvalidPreferenceValue = errors.New("invalid preference value")
|
|
)
|