Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
陈曦
sub2api
Commits
2d45e61a
Commit
2d45e61a
authored
Jan 12, 2026
by
IanShaw027
Browse files
style(ops): 修复代码格式问题以通过 golangci-lint
parent
b98fb013
Changes
2
Hide whitespace changes
Inline
Side-by-side
backend/internal/service/ops_settings.go
View file @
2d45e61a
...
...
@@ -368,9 +368,9 @@ func defaultOpsAdvancedSettings() *OpsAdvancedSettings {
Aggregation
:
OpsAggregationSettings
{
AggregationEnabled
:
false
,
},
IgnoreCountTokensErrors
:
false
,
AutoRefreshEnabled
:
false
,
AutoRefreshIntervalSec
:
30
,
IgnoreCountTokensErrors
:
false
,
AutoRefreshEnabled
:
false
,
AutoRefreshIntervalSec
:
30
,
}
}
...
...
backend/internal/service/ops_settings_models.go
View file @
2d45e61a
...
...
@@ -79,11 +79,11 @@ type OpsAlertRuntimeSettings struct {
// OpsAdvancedSettings stores advanced ops configuration (data retention, aggregation).
type
OpsAdvancedSettings
struct
{
DataRetention
OpsDataRetentionSettings
`json:"data_retention"`
Aggregation
OpsAggregationSettings
`json:"aggregation"`
IgnoreCountTokensErrors
bool
`json:"ignore_count_tokens_errors"`
AutoRefreshEnabled
bool
`json:"auto_refresh_enabled"`
AutoRefreshIntervalSec
int
`json:"auto_refresh_interval_seconds"`
DataRetention
OpsDataRetentionSettings
`json:"data_retention"`
Aggregation
OpsAggregationSettings
`json:"aggregation"`
IgnoreCountTokensErrors
bool
`json:"ignore_count_tokens_errors"`
AutoRefreshEnabled
bool
`json:"auto_refresh_enabled"`
AutoRefreshIntervalSec
int
`json:"auto_refresh_interval_seconds"`
}
type
OpsDataRetentionSettings
struct
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment