Skip to content

Commit a9569da

Browse files
committed
找回密码
1 parent 9ddddb1 commit a9569da

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/java/com/danbai/ys/controller/restful/v1/User.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,6 @@ public BaseResult exit(Token token){
7979
@PostMapping("/forgetPass")
8080
@ApiOperation(value ="忘记密码通过邮箱修改")
8181
public BaseResult forgetPass(com.danbai.ys.entity.User user,String yzm){
82-
return ResultUtil.success(userService.forgetPass(user, yzm));
82+
return ResultUtil.successMsg(userService.forgetPass(user, yzm));
8383
}
8484
}

src/main/java/com/danbai/ys/utils/ResultUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public static <T> BaseResult<T> error(String errorMsg) {
2222
public static <T> BaseResult<T> error(Integer code, String errorMsg) {
2323
return commonResult(0, code, errorMsg, null);
2424
}
25-
public static <T> BaseResult<T> success(String msg) {
25+
public static <T> BaseResult<T> successMsg(String msg) {
2626
return commonResult(1, 200, msg, null);
2727
}
2828
private static <T> BaseResult<T> commonResult(Integer status, Integer code, String errMsg, T data) {

0 commit comments

Comments
 (0)