完成剩余模块 Context 超时控制改造

This commit is contained in:
yml2213
2026-06-10 12:58:59 +08:00
parent d2858c529d
commit 6ae8f0e830
24 changed files with 370 additions and 323 deletions
@@ -18,7 +18,7 @@ func NewHandler(service *Service) *Handler {
}
func (h *Handler) Summary(c *gin.Context) {
item, err := h.service.Summary()
item, err := h.service.Summary(c.Request.Context())
if err != nil {
writeDashboardError(c, err)
return