style: 本批新代码 gofmt 对齐(config_test/agent_node)

This commit is contained in:
Muse
2026-10-22 13:46:02 +00:00
parent 7e7ab2ecbd
commit a82d1e56fa
2 changed files with 7 additions and 7 deletions
+6 -6
View File
@@ -105,12 +105,12 @@ func TestCompareDisplayVersion(t *testing.T) {
want int
}{
{"1.0.0", "1.0.0", 0},
{"V1.0.0", "A1.0.0", 0}, // prefix letters are flavour, not value
{"1.0.9", "1.1.0", -1}, // single-digit carry step
{"1.1.0", "1.0.9", 1}, // carry compares numerically, not lexically
{"1.9.9", "2.0.0", -1}, // full carry
{"A1.0.1", "A1.0.0", 1}, // agent series
{"V1.0.1", "1.0.0", 1}, // release tag vs current
{"V1.0.0", "A1.0.0", 0}, // prefix letters are flavour, not value
{"1.0.9", "1.1.0", -1}, // single-digit carry step
{"1.1.0", "1.0.9", 1}, // carry compares numerically, not lexically
{"1.9.9", "2.0.0", -1}, // full carry
{"A1.0.1", "A1.0.0", 1}, // agent series
{"V1.0.1", "1.0.0", 1}, // release tag vs current
{"2.0.0", "1.9.9", 1},
{"1.0.0", "1.0.1", -1},
}
+1 -1
View File
@@ -18,7 +18,7 @@ type AgentNode struct {
// values are never overwritten by requests; only issuance (create /
// panel-side re-issue) writes a fresh one. Never serialized.
TokenPlain string `json:"-" gorm:"type:text"`
Name string `json:"name"`
Name string `json:"name"`
// NodeID is the 3x-ui node whose inbounds this agent serves. Nil means the
// token was issued but not yet bound to a node.
NodeID *int `json:"nodeId" gorm:"index"`