Browse Source

Merge branch 'master' of Peng/finekit into master

master
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> <properties>
<common-version>10.0-FEATURE-SNAPSHOT</common-version> <common-version>10.0-FEATURE-SNAPSHOT</common-version>
<maven.build.timestamp.format>yyyyMMdd</maven.build.timestamp.format> <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> <build-no>${maven.build.timestamp}</build-no>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties> </properties>
<dependencies> <dependencies>
<!-- core包 --> <!-- core包 -->
@ -129,9 +130,10 @@
</dependency> </dependency>
</dependencies> </dependencies>
<build> <build>
<finalName>${project.artifactId}-${version}-${maven.build.timestamp}</finalName> <finalName>${project.artifactId}-${project.version}-${maven.build.timestamp}</finalName>
<plugins> <plugins>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId> <artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version> <version>3.1</version>
<configuration> <configuration>
@ -141,17 +143,10 @@
<proc>none</proc> <proc>none</proc>
</configuration> </configuration>
</plugin> </plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>8</source>
<target>8</target>
</configuration>
</plugin>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId> <artifactId>maven-jar-plugin</artifactId>
<version>3.1.2</version>
<configuration> <configuration>
<archive> <archive>
<manifest> <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 com.fr.decision.webservice.v10.user.UserService;
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequest;
import java.util.List;
/** /**
* @author richie * @author richie
@ -63,4 +64,15 @@ public class UserKit {
public static void add(OpenUser user) throws Exception { public static void add(OpenUser user) throws Exception {
AuthorityContext.getInstance().getUserController().update(user.select()); 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