优化结构

This commit is contained in:
Yvan
2026-08-28 16:23:52 +08:00
parent 9b1daaf3f6
commit 295ee5c49e
24 changed files with 128 additions and 145 deletions
+2 -1
View File
@@ -5,7 +5,8 @@ import (
)
var (
ErrUserNotFound = errors.NotFound("USER_NOT_FOUND", "user not found")
ErrUserNotFound = errors.NotFound("USER_NOT_FOUND", "user not found")
ErrMediaNotFound = errors.NotFound("MEDIA_NOT_FOUND", "media not found")
// ErrInvalidCredentials is returned for any failed login, regardless of
// whether the user exists, to avoid leaking which accounts are registered.
ErrInvalidCredentials = errors.Unauthorized("INVALID_CREDENTIALS", "invalid credentials")