From ec3ec37130ef39642b204261fa4c9753ee05086e Mon Sep 17 00:00:00 2001 From: Peng Date: Fri, 27 Sep 2019 22:55:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BA=86=E9=80=9A=E8=BF=87?= =?UTF-8?q?=E9=82=AE=E7=AE=B1=E8=8E=B7=E5=8F=96=E7=94=A8=E6=88=B7=E5=90=8D?= =?UTF-8?q?=E7=9A=84=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/fanruan/api/decision/user/UserKit.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/main/java/com/fanruan/api/decision/user/UserKit.java b/src/main/java/com/fanruan/api/decision/user/UserKit.java index eeb1429..6375a0e 100644 --- a/src/main/java/com/fanruan/api/decision/user/UserKit.java +++ b/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 getUserNamesFromEmail(String email) throws Exception { + return UserService.getInstance().getUserNamesFromEmail(email); + } }