diff --git a/backend/internal/service/ops_port.go b/backend/internal/service/ops_port.go index 1de9c8e9..347b06b5 100644 --- a/backend/internal/service/ops_port.go +++ b/backend/internal/service/ops_port.go @@ -161,7 +161,7 @@ type OpsInsertSystemMetricsInput struct { Upstream429Count int64 Upstream529Count int64 - TokenConsumed int64 + TokenConsumed int64 AccountSwitchCount int64 QPS *float64 @@ -224,8 +224,8 @@ type OpsSystemMetricsSnapshot struct { DBConnIdle *int `json:"db_conn_idle"` DBConnWaiting *int `json:"db_conn_waiting"` - GoroutineCount *int `json:"goroutine_count"` - ConcurrencyQueueDepth *int `json:"concurrency_queue_depth"` + GoroutineCount *int `json:"goroutine_count"` + ConcurrencyQueueDepth *int `json:"concurrency_queue_depth"` AccountSwitchCount *int64 `json:"account_switch_count"` } diff --git a/backend/internal/service/setting_service.go b/backend/internal/service/setting_service.go index e40d0d0d..f5ba9d71 100644 --- a/backend/internal/service/setting_service.go +++ b/backend/internal/service/setting_service.go @@ -299,6 +299,7 @@ func (s *SettingService) IsInvitationCodeEnabled(ctx context.Context) bool { } return value == "true" } + // IsPasswordResetEnabled 检查是否启用密码重置功能 // 要求:必须同时开启邮件验证 func (s *SettingService) IsPasswordResetEnabled(ctx context.Context) bool {