短信提交 2021-04-01,重构返回的结果

This commit is contained in:
YunaiV
2021-04-01 01:31:35 +08:00
parent 9528698a5f
commit 5a1491d7fd
21 changed files with 174 additions and 140 deletions

View File

@ -30,7 +30,7 @@ public class CommonResult<T> implements Serializable {
/**
* 错误提示,用户可阅读
*
* @see ErrorCode#getMessage() ()
* @see ErrorCode#getMsg() ()
*/
private String msg;
@ -56,7 +56,7 @@ public class CommonResult<T> implements Serializable {
}
public static <T> CommonResult<T> error(ErrorCode errorCode) {
return error(errorCode.getCode(), errorCode.getMessage());
return error(errorCode.getCode(), errorCode.getMsg());
}
public static <T> CommonResult<T> success(T data) {