fix(notify): add balance/quota notify flags to PublicSettings DTO and handler

The service layer correctly populated BalanceLowNotifyEnabled and
AccountQuotaNotifyEnabled in PublicSettings, but the handler-to-DTO
mapping was missing. Users could not see the balance notify card because
the public settings API never returned these flags.
This commit is contained in:
erio
2026-04-12 20:10:24 +08:00
parent 49281bbe45
commit 79d154ed73
2 changed files with 4 additions and 0 deletions

View File

@@ -61,5 +61,7 @@ func (h *SettingHandler) GetPublicSettings(c *gin.Context) {
BackendModeEnabled: settings.BackendModeEnabled,
PaymentEnabled: settings.PaymentEnabled,
Version: h.version,
BalanceLowNotifyEnabled: settings.BalanceLowNotifyEnabled,
AccountQuotaNotifyEnabled: settings.AccountQuotaNotifyEnabled,
})
}