9aff7d8f26
Fix 200 response exception builder
...
Signed-off-by: Asai Neko <sugar@sne.moe >
2026-01-21 15:26:59 +08:00
2f26b2ddb5
Fix stupid ai errors
...
Signed-off-by: Asai Neko <sugar@sne.moe >
2026-01-21 14:58:23 +08:00
a60a796345
refactor: use SetError in exception.Builder where errors are available
...
Update multiple services and middlewares to pass the original error to exception.Builder before building the error code.
Co-authored-by: Gemini <gemini@google.com >
2026-01-21 14:42:52 +08:00
14f50ecdb2
refactor: update exception constants to follow new naming convention
...
- Update old ErrorStatus, ErrorType, and Service/Endpoint constants to new naming convention
- Fix incorrect TypeSpecific usage in JWT middleware
- Add missing event specific error definitions to specific.yaml
- Regenerate exception constants
Co-authored-by: Gemini <gemini@google.com >
2026-01-21 14:34:09 +08:00
ac428946e7
Use generator to generate exceptions from yaml
...
Signed-off-by: Asai Neko <sugar@sne.moe >
2026-01-21 13:48:37 +08:00
e4329dfc2b
refactor: standardize error handling with exception.Builder
...
- Replace hardcoded error messages with structured error codes using exception.Builder.
- Introduce new common error constants in exception/common.go (CommonErrorInvalidInput, CommonErrorUserNotFound, etc.).
- Update exception/specific.go with domain-specific errors and remove redundant ones.
- Apply consistent error handling across auth, event, user services and middleware.
Co-authored-by: Gemini <gemini@google.com >
Signed-off-by: Noa Virellia <noa@requiem.garden >
2026-01-21 12:47:49 +08:00
6a9c013799
Use utils.HttpResponse/Abort to replace c.JSON/Abort
...
Build Backend (NixCN CMS) TeamCity build finished
Build Frontend (NixCN CMS) TeamCity build finished
Signed-off-by: Asai Neko <sugar@sne.moe >
2026-01-06 12:49:55 +08:00
a98ab26fa4
Add oauth2 like auth service
...
Build Backend (NixCN CMS) TeamCity build finished
Build Frontend (NixCN CMS) TeamCity build finished
Signed-off-by: Asai Neko <sugar@sne.moe >
2026-01-02 15:57:42 +08:00
743f8373b0
Fix request return
...
Build Backend (NixCN CMS) TeamCity build finished
Build Frontend (NixCN CMS) TeamCity build finished
Signed-off-by: Asai Neko <sugar@sne.moe >
2026-01-02 13:34:13 +08:00
b3fe91444d
Add event query api
...
Signed-off-by: Asai Neko <sugar@sne.moe >
2025-12-28 01:05:47 +08:00
b6003544c8
Add renew refresh token
...
Signed-off-by: Asai Neko <sugar@sne.moe >
2025-12-27 23:59:20 +08:00
b30d9db69d
Auto reg user, event map
...
Signed-off-by: Asai Neko <sugar@sne.moe >
2025-12-25 21:30:26 +08:00
3a86d387bd
Add full refresh token and access token function
...
Signed-off-by: Asai Neko <sugar@sne.moe >
2025-12-25 16:13:05 +08:00