|
@@ -155,13 +155,13 @@ func DelCloudBrainJob(ctx *context.APIContext) { |
|
|
|
|
|
|
|
|
if errStr != "" { |
|
|
if errStr != "" { |
|
|
ctx.JSON(http.StatusOK, map[string]interface{}{ |
|
|
ctx.JSON(http.StatusOK, map[string]interface{}{ |
|
|
"Message": ctx.Tr(errStr), |
|
|
|
|
|
|
|
|
"message": ctx.Tr(errStr), |
|
|
"VersionName": versionName, |
|
|
"VersionName": versionName, |
|
|
"code": 1, |
|
|
"code": 1, |
|
|
}) |
|
|
}) |
|
|
} else { |
|
|
} else { |
|
|
ctx.JSON(http.StatusOK, map[string]interface{}{ |
|
|
ctx.JSON(http.StatusOK, map[string]interface{}{ |
|
|
"Message": "", |
|
|
|
|
|
|
|
|
"message": "", |
|
|
"VersionName": versionName, |
|
|
"VersionName": versionName, |
|
|
"code": 0, |
|
|
"code": 0, |
|
|
}) |
|
|
}) |
|
|