feat: first commit

This commit is contained in:
sittichok Ouamsiri
2026-06-15 21:25:57 +07:00
commit 3395ab6dd3
88 changed files with 10034 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
package domain
import "errors"
// Sentinel errors crossing the port boundary. Adapters translate infra errors
// into these; HTTP layer maps these to status codes.
var (
ErrNotFound = errors.New("not found")
ErrCodeTaken = errors.New("code already taken")
ErrReserved = errors.New("code is reserved")
ErrInvalidURL = errors.New("invalid destination url")
ErrInvalidAlias = errors.New("invalid custom alias")
ErrInvalidPin = errors.New("pin must be exactly 6 digits")
ErrUnauthorized = errors.New("authentication required")
ErrForbidden = errors.New("not allowed")
ErrPinRequired = errors.New("pin required")
ErrPinInvalid = errors.New("incorrect pin")
)