fix:: 请求响应码用常量
This commit is contained in:
1 parent
c67fbb7998
commit
33b95a6e30
73 files changed
+441
-375
No files matched your search
@@ -146,7 +146,7 @@ func (s *BootloaderController) Account(c *gin.Context) {
|
||||
}
|
||||
if err := c.ShouldBindJSON(&body); err != nil {
|
||||
errMsgs := fmt.Sprintf("bind err: %s", resp.FormatBindError(err))
|
||||
c.JSON(422, resp.CodeMsg(422001, errMsgs))
|
||||
c.JSON(422, resp.CodeMsg(resp.CODE_PARAM_PARSER, errMsgs))
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user