fix typo and add render (#410)

master
dujiashu 4 years ago committed by GitHub
parent a5672bc1b3
commit a6b160caed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -20,7 +20,7 @@ func resourceSearchGet(c *gin.Context) {
type containerSyncForm struct { type containerSyncForm struct {
Name string `json:"name" binding:"required"` Name string `json:"name" binding:"required"`
Type string `json:"type" binding:"type"` Type string `json:"type" binding:"required"`
Items []v1ContainersRegisterItem `json:"items"` Items []v1ContainersRegisterItem `json:"items"`
} }
@ -44,6 +44,7 @@ func v1ContainerSyncPost(c *gin.Context) {
count := len(sf.Items) count := len(sf.Items)
if count == 0 { if count == 0 {
renderMessage(c, "")
return return
} }

Loading…
Cancel
Save