feat(report): integrate report handling into application
All checks were successful
Build Backend / build (push) Successful in 13m27s
Build Backend / build-docker (push) Successful in 1m29s

- Added Report and AdminReport handlers to manage report-related functionalities.
- Updated router and wire generation to include new report services and handlers.
- Enhanced error handling in report and admin report handlers to return appropriate status codes.
- Refactored notification logic in admin report service to utilize a dedicated notification repository and push service.
This commit is contained in:
lafay
2026-03-30 03:44:24 +08:00
parent 7fa49155dd
commit a69b2026f4
6 changed files with 44 additions and 36 deletions

View File

@@ -53,7 +53,7 @@ func (h *ReportHandler) Create(c *gin.Context) {
zap.String("target_type", req.TargetType),
zap.String("target_id", req.TargetID),
)
response.Error(c, err.Error())
response.Error(c, 500, err.Error())
return
}