refactor(go): simplify redis realtime projections

This commit is contained in:
lingniu
2026-07-03 13:42:15 +08:00
parent a96490618c
commit c359930009
5 changed files with 207 additions and 70 deletions

View File

@@ -109,9 +109,6 @@ func flattenKV(prefix string, value any, out map[string]any) {
return
}
itemKey := strconv.Itoa(index)
if serial := strings.TrimSpace(strconvAny(itemMap["serial_no"])); serial != "" && serial != "<nil>" {
itemKey = serial
}
next := itemKey
if prefix != "" {
next = prefix + "." + itemKey