增加透传给前端的自定义字段方便前端扩展功能

This commit is contained in:
naiba
2024-09-28 00:16:54 +08:00
parent aa6879a666
commit db51b4111b
12 changed files with 40 additions and 18 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ func TestServerMarshal(t *testing.T) {
Name: patterns[i],
Tag: patterns[i],
}
serverStr := string(server.Marshal())
serverStr := string(server.MarshalForDashboard())
var serverRestore Server
if utils.Json.Unmarshal([]byte(serverStr), &serverRestore) != nil {
t.Fatalf("Error: %s", serverStr)