|
@@ -164,7 +164,13 @@ public class UserFacade extends UserServiceImpl {
|
|
|
return this.findByName(username);
|
|
|
}
|
|
|
|
|
|
- public RespDTO login(String username , String password){
|
|
|
+ /**
|
|
|
+ * 用户登录
|
|
|
+ * @param username 用户名
|
|
|
+ * @param password 密码
|
|
|
+ * @return 用户登录信息
|
|
|
+ */
|
|
|
+ public RespDTO<LoginDTO> login(String username , String password){
|
|
|
User user= this.findByName(username);
|
|
|
if(null==user){
|
|
|
throw new CommonException(ServiceErrorCode.USER_NOT_FOUND);
|