From 82a42f36492a8b6f3837ec2b3aabbac4d6be5675 Mon Sep 17 00:00:00 2001 From: UlricQin Date: Fri, 4 Dec 2020 18:56:28 +0800 Subject: [PATCH] host filter support id field --- src/modules/rdb/http/router_resource.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/modules/rdb/http/router_resource.go b/src/modules/rdb/http/router_resource.go index e9c69003..5b72abba 100644 --- a/src/modules/rdb/http/router_resource.go +++ b/src/modules/rdb/http/router_resource.go @@ -345,6 +345,8 @@ func resourceBindNode(c *gin.Context) { if len(ids) == 0 { bomb("resources not found by %s", "ident") } + } else if f.Field == "id" { + ids = str.IdsInt64(strings.Join(f.Items, ",")) } else { bomb("field[%s] not supported", f.Field) }