login
31353 2023-12-17 10:40:17 +08:00
parent d48f779680
commit ffd27b6729
3 changed files with 4 additions and 4 deletions

View File

@ -12,7 +12,7 @@ public class User {
/** /**
* Id * Id
*/ */
private String id; private Integer id;
/** /**
* *
*/ */

View File

@ -28,9 +28,9 @@ public interface UserMapper {
User findName(String username); User findName(String username);
void updPwds(@Param("id") String id, @Param("userPwd") String userPwd); void updPwds(@Param("id") Integer id, @Param("userPwd") String userPwd);
void UpdRoles(String id); void UpdRoles(Integer id);
List<User> userList(int i); List<User> userList(int i);
} }

View File

@ -60,7 +60,7 @@ public class UserServicelmpl implements UserService {
if (!(retri.getRole() == user.getRole())) { if (!(retri.getRole() == user.getRole())) {
return Result.error("身份选择错误,请重新选择身份信息"); return Result.error("身份选择错误,请重新选择身份信息");
} }
return Result.success(user.getPassword(), "找回成功"); return Result.success("您的密码为:"+user.getPassword(), "找回成功");
} }
// /** // /**