未验证 提交 a6b160ca 编写于 作者: D dujiashu 提交者: GitHub

fix typo and add render (#410)

上级 a5672bc1
......@@ -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
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册