alert service

This commit is contained in:
yash 2026-02-25 23:52:21 +03:00
parent 0e73841b3e
commit 608561ab38
8 changed files with 283 additions and 8 deletions

View file

@ -55,3 +55,12 @@ func (uc *Usecase) UpdateAlertPrice(ctx context.Context, alertID entities.AlertI
return nil
}
func (uc *Usecase) DisableAlert(ctx context.Context, alertID entities.AlertID) error {
if err := uc.storage.DisableAlert(ctx, alertID); err != nil {
uc.log.Error("failed to disable alert", "alert_id", alertID, "err", err)
return fmt.Errorf("failed to disable alert: %w", err)
}
return nil
}