login
parent
d48f779680
commit
ffd27b6729
|
@ -12,7 +12,7 @@ public class User {
|
||||||
/**
|
/**
|
||||||
* Id
|
* Id
|
||||||
*/
|
*/
|
||||||
private String id;
|
private Integer id;
|
||||||
/**
|
/**
|
||||||
* 用户名
|
* 用户名
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
|
@ -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(), "找回成功");
|
||||||
}
|
}
|
||||||
|
|
||||||
// /**
|
// /**
|
||||||
|
|
Loading…
Reference in New Issue