Browse Source

Merge branch 'master' of Peng/finekit into master

pull/25/head
richie 5 years ago committed by Gogs
parent
commit
5acf7a4b5e
  1. 15
      pom.xml
  2. 12
      src/main/java/com/fanruan/api/decision/user/UserKit.java

15
pom.xml

@ -8,8 +8,9 @@
<properties>
<common-version>10.0-FEATURE-SNAPSHOT</common-version>
<maven.build.timestamp.format>yyyyMMdd</maven.build.timestamp.format>
<build-version>${version}</build-version>
<build-version>${project.version}</build-version>
<build-no>${maven.build.timestamp}</build-no>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<!-- core包 -->
@ -129,9 +130,10 @@
</dependency>
</dependencies>
<build>
<finalName>${project.artifactId}-${version}-${maven.build.timestamp}</finalName>
<finalName>${project.artifactId}-${project.version}-${maven.build.timestamp}</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
@ -141,17 +143,10 @@
<proc>none</proc>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>8</source>
<target>8</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.1.2</version>
<configuration>
<archive>
<manifest>

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