feat: implement V2 alert center and scoped alert governance

This commit is contained in:
Yvan
2026-11-05 20:08:29 +08:00
parent f8e26c5baf
commit 999c9a6315
57 changed files with 2711 additions and 216 deletions
+9
View File
@@ -17,6 +17,15 @@ func NewAlertRecord(service *business.AlertRecordService) *AlertRecord {
return &AlertRecord{service: service}
}
func (h *AlertRecord) Platforms(c *gin.Context) {
values, err := h.service.Platforms(c.Request.Context())
if err != nil {
Fail(c, errors.FromError(err).Message)
return
}
OKWithData(c, values)
}
func (h *AlertRecord) List(c *gin.Context) {
var req dto.AlertRecordQuery
if c.ShouldBindQuery(&req) != nil {