Commit ae5f3447 authored by szh's avatar szh

update map nil err

parent 12dabc45
......@@ -189,12 +189,13 @@ func GetFeedList(c *gin.Context){
return
}
count := models.GetAddrFeedBackCount(req.Addr)
var h gin.H
h["list"] = list
h["count"] = count
if err != nil {
appG.Response(http.StatusOK, e.ERROR, nil)
return
}
appG.Response(http.StatusOK, e.SUCCESS, h)
appG.Response(http.StatusOK, e.SUCCESS, gin.H{
"list" :list,
"count":count,
})
}
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