fix:: 请求响应码用常量

This commit is contained in:
TsMask committed 2025-06-07 16:32:04 +08:00
1 parent c67fbb7998
commit 33b95a6e30
73 files changed
+441 -375

No files matched your search

+1 -1
View File
@@ -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
}