From a6b160caedcb24738e5602b56481473e45c479b5 Mon Sep 17 00:00:00 2001 From: dujiashu <929365073@qq.com> Date: Wed, 18 Nov 2020 18:16:56 +0800 Subject: [PATCH] fix typo and add render (#410) --- src/modules/rdb/http/router_resource.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modules/rdb/http/router_resource.go b/src/modules/rdb/http/router_resource.go index 05e91473..c44c0d51 100644 --- a/src/modules/rdb/http/router_resource.go +++ b/src/modules/rdb/http/router_resource.go @@ -20,7 +20,7 @@ func resourceSearchGet(c *gin.Context) { type containerSyncForm struct { Name string `json:"name" binding:"required"` - Type string `json:"type" binding:"type"` + Type string `json:"type" binding:"required"` Items []v1ContainersRegisterItem `json:"items"` } @@ -44,6 +44,7 @@ func v1ContainerSyncPost(c *gin.Context) { count := len(sf.Items) if count == 0 { + renderMessage(c, "") return }