gaodm 6 年之前
父節點
當前提交
dca9e4412b
共有 1 個文件被更改,包括 7 次插入1 次删除
  1. 7 1
      user-service/src/main/java/com/diagbot/facade/UserFacade.java

+ 7 - 1
user-service/src/main/java/com/diagbot/facade/UserFacade.java

@@ -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);