314995e5f9
Finilize user api layer
...
Signed-off-by: Asai Neko <sugar@sne.moe >
2026-01-24 12:37:17 +08:00
986f63c0af
Add context for all exceptions
...
Signed-off-by: Asai Neko <sugar@sne.moe >
2026-01-21 19:37:20 +08:00
b8f89ab655
Add context for everything
...
Signed-off-by: Asai Neko <sugar@sne.moe >
2026-01-21 16:43:46 +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
585ec46282
Fix some type change bugs (error)
...
Signed-off-by: Asai Neko <sugar@sne.moe >
2026-01-21 14:16:47 +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
0f1c8e327e
Mod permission middleware to only request database once
...
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 10:40:48 +08:00
ddffb0da23
Add permission middleware
...
Signed-off-by: Asai Neko <sugar@sne.moe >
2026-01-06 10:36:51 +08:00