mirror of
https://github.com/gin-gonic/gin.git
synced 2025-10-23 10:02:10 +08:00
improve code readable
This commit is contained in:
parent
ee2262b48a
commit
a37a344099
@ -31,11 +31,11 @@ func main() {
|
||||
c.JSON(http.StatusInternalServerError, gin.H{
|
||||
"error": err.Error(),
|
||||
})
|
||||
} else {
|
||||
c.JSON(http.StatusOK, gin.H{
|
||||
"result": fmt.Sprint(res.Message),
|
||||
})
|
||||
}
|
||||
|
||||
c.JSON(http.StatusOK, gin.H{
|
||||
"result": fmt.Sprint(res.Message),
|
||||
})
|
||||
})
|
||||
|
||||
// Run http server
|
||||
|
Loading…
x
Reference in New Issue
Block a user