format🥚 代码格式化

This commit is contained in:
zhangwenjian
2021-05-31 18:10:23 +08:00
parent a7cc943b8e
commit a54d4ba0c1
96 changed files with 143 additions and 151 deletions
+2 -3
View File
@@ -39,7 +39,7 @@ func LoggerToFile() gin.HandlerFunc {
}
rb, _ := ioutil.ReadAll(bf)
c.Request.Body = ioutil.NopCloser(bytes.NewBuffer(rb))
body =string(rb)
body = string(rb)
}
c.Next()
@@ -53,7 +53,6 @@ func LoggerToFile() gin.HandlerFunc {
if c.Request.Method == http.MethodOptions {
return
}
rt, bl := c.Get("result")
var result = ""
@@ -129,4 +128,4 @@ func SetDBOperLog(c *gin.Context, clientIP string, statusCode int, reqUri string
log.Errorf("Append message error, %s", err.Error())
}
}
}
}