🎨 清理多余文件,修改项目model

This commit is contained in:
2026-04-10 15:38:58 +08:00
parent 6a80fcc388
commit f106960342
221 changed files with 686 additions and 2801 deletions

View File

@@ -16,35 +16,35 @@ func TestGetJSONKeys(t *testing.T) {
}`
keys, err := GetJSONKeys(jsonStr)
if err != nil {
t.Errorf("GetJSONKeys failed" + err.Error())
t.Errorf("GetJSONKeys failed: %v", err)
return
}
if len(keys) != 5 {
t.Errorf("GetJSONKeys failed" + err.Error())
t.Errorf("GetJSONKeys unexpected key count: %d", len(keys))
return
}
if keys[0] != "Name" {
t.Errorf("GetJSONKeys failed" + err.Error())
t.Errorf("GetJSONKeys unexpected first key: %s", keys[0])
return
}
if keys[1] != "TableName" {
t.Errorf("GetJSONKeys failed" + err.Error())
t.Errorf("GetJSONKeys unexpected second key: %s", keys[1])
return
}
if keys[2] != "TemplateID" {
t.Errorf("GetJSONKeys failed" + err.Error())
t.Errorf("GetJSONKeys unexpected third key: %s", keys[2])
return
}
if keys[3] != "TemplateInfo" {
t.Errorf("GetJSONKeys failed" + err.Error())
t.Errorf("GetJSONKeys unexpected fourth key: %s", keys[3])
return
}
if keys[4] != "Limit" {
t.Errorf("GetJSONKeys failed" + err.Error())
t.Errorf("GetJSONKeys unexpected fifth key: %s", keys[4])
return
}