新增短信、邮件模块

This commit is contained in:
wanggeng888 2021-05-01 12:04:10 +08:00
parent a9af60de1e
commit 78949c170a
3 changed files with 68 additions and 0 deletions

23
module-sms/pom.xml Normal file
View File

@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>wg-basic</artifactId>
<groupId>ink.wgink</groupId>
<version>1.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>module-sms</artifactId>
<description>消息模块,短信,邮件</description>
<dependencies>
<dependency>
<groupId>ink.wgink</groupId>
<artifactId>common</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
</dependencies>
</project>

View File

@ -0,0 +1,44 @@
package ink.wgink.module.sms.pojo;
/**
* When you feel like quitting. Think about why you started
* 当你想要放弃的时候想想当初你为何开始
*
* @ClassName: VerificationCode
* @Description: 验证码
* @Author: WangGeng
* @Date: 2020/3/4 5:50 下午
* @Version: 1.0
**/
public class VerifyCode {
private String code;
private long time;
public String getCode() {
return code == null ? "" : code.trim();
}
public void setCode(String code) {
this.code = code;
}
public long getTime() {
return time;
}
public void setTime(long time) {
this.time = time;
}
@Override
public String toString() {
final StringBuilder sb = new StringBuilder("{");
sb.append("\"code\":")
.append("\"").append(code).append("\"");
sb.append(",\"time\":")
.append(time);
sb.append('}');
return sb.toString();
}
}

View File

@ -32,6 +32,7 @@
<module>module-article</module>
<module>module-wechat</module>
<module>register-base</module>
<module>module-sms</module>
</modules>
<packaging>pom</packaging>