init: hgmj server initial commit

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-10-08 16:50:13 +08:00
co-authored by Claude Opus 4.7
commit 625e89c15d
1870 changed files with 254090 additions and 0 deletions
@@ -0,0 +1,22 @@
package sysconfmod
import "testing"
func TestPaymentGuideConfigDefaultsEnabled(t *testing.T) {
found := make(map[VCode]bool)
for _, item := range initData {
code := VCode(item.VCode)
if code != VCodePaymentGuideEnabled && code != VCodePaymentGuideHomeEnabled {
continue
}
if item.GpCode != string(GPCodePopup) || item.Type != CfgTypeBool || item.Value != "true" {
t.Fatalf("unexpected payment guide config %s: group=%s type=%s value=%s", code, item.GpCode, item.Type, item.Value)
}
found[code] = true
}
for _, code := range []VCode{VCodePaymentGuideEnabled, VCodePaymentGuideHomeEnabled} {
if !found[code] {
t.Fatalf("%s config is not initialized", code)
}
}
}