Browse Source

添加了通过邮箱获取用户名的接口

remotes/1611766341912730171/master
Peng 5 years ago
parent
commit
ec3ec37130
  1. 12
      src/main/java/com/fanruan/api/decision/user/UserKit.java

12
src/main/java/com/fanruan/api/decision/user/UserKit.java

@ -7,6 +7,7 @@ import com.fr.decision.webservice.utils.user.source.UserSource;
import com.fr.decision.webservice.v10.user.UserService;
import javax.servlet.http.HttpServletRequest;
import java.util.List;
/**
* @author richie
@ -63,4 +64,15 @@ public class UserKit {
public static void add(OpenUser user) throws Exception {
AuthorityContext.getInstance().getUserController().update(user.select());
}
/**
* 通过邮箱获取用户名数组
*
* @param email 邮箱
* @return 用户名数组
* @throws Exception 如果邮箱不存在则抛出此异常
*/
public static List<String> getUserNamesFromEmail(String email) throws Exception {
return UserService.getInstance().getUserNamesFromEmail(email);
}
}

Loading…
Cancel
Save