perf: 【破坏性更新】错误返回信息msg字段名统一改成message,与成功的返回结构一致

This commit is contained in:
xiaojunnuo
2026-02-26 23:50:01 +08:00
parent 3a8b5de8f7
commit 51ab6d6da1
3 changed files with 9 additions and 9 deletions
@@ -34,7 +34,7 @@ export abstract class BaseController {
fail(msg: string, code?: any) {
return {
code: code ? code : Constants.res.error.code,
msg: msg ? msg : Constants.res.error.code,
message: msg ? msg : Constants.res.error.code,
};
}