Commit 44b5fb82 authored by szh's avatar szh

up

parent 0fae3ee7
......@@ -239,7 +239,10 @@ func ResetNode(c* gin.Context){
func UpdateDetail(c* gin.Context){
appG := app.Gin{C: c}
appG.Response(http.StatusOK,e.SUCCESS,app.UpdateInfo)
appG.Response(http.StatusOK,e.SUCCESS,gin.H{
"total":app.UpdateInfo.Total,
"current":app.UpdateInfo.Current,
})
}
//get current version and latest version
......@@ -268,5 +271,4 @@ func NodeInfo(c *gin.Context){
return
}
appG.Response(http.StatusOK,e.SUCCESS,"node is running")
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment