mirror of
https://gitee.com/wangkang/udf.git
synced 2026-10-29 10:33:47 +00:00
添加阿里云短信平台集成
This commit is contained in:
@@ -45,6 +45,7 @@
|
||||
<module>udf-starter-file</module>
|
||||
<module>udf-starter-file-aliyun-oss</module>
|
||||
<module>udf-starter-file-aliyun-oss-api</module>
|
||||
<module>udf-starter-aliyun-dysms</module>
|
||||
<module>udf-starter-aliyun-dysms-api</module>
|
||||
<module>udf-starter-mail</module>
|
||||
<module>udf-starter-scheduler</module>
|
||||
@@ -133,6 +134,12 @@
|
||||
<artifactId>udf-starter-file-aliyun-oss-api</artifactId>
|
||||
<version>${udf-starter.version}</version>
|
||||
</dependency>
|
||||
<!-- udf-starter-aliyun-dysms -->
|
||||
<dependency>
|
||||
<groupId>org.itkk.udf</groupId>
|
||||
<artifactId>udf-starter-aliyun-dysms</artifactId>
|
||||
<version>${udf-starter.version}</version>
|
||||
</dependency>
|
||||
<!-- udf-starter-aliyun-dysms-api -->
|
||||
<dependency>
|
||||
<groupId>org.itkk.udf</groupId>
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
<?xml version="1.0"?>
|
||||
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
|
||||
xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<!-- maven坐标 -->
|
||||
<artifactId>udf-starter-aliyun-dysms</artifactId>
|
||||
<name>udf-starter-aliyun-dysms</name>
|
||||
<packaging>jar</packaging>
|
||||
<url>http://itkk.org:81</url>
|
||||
<!-- 父依赖 -->
|
||||
<parent>
|
||||
<groupId>org.itkk.udf</groupId>
|
||||
<artifactId>udf-starter</artifactId>
|
||||
<version>1.0</version>
|
||||
</parent>
|
||||
<!-- 依赖 -->
|
||||
<dependencies>
|
||||
<!-- udf-core-starter -->
|
||||
<dependency>
|
||||
<groupId>org.itkk.udf</groupId>
|
||||
<artifactId>udf-starter-core</artifactId>
|
||||
</dependency>
|
||||
<!-- udf-starter-cache-redis -->
|
||||
<dependency>
|
||||
<groupId>org.itkk.udf</groupId>
|
||||
<artifactId>udf-starter-cache-redis</artifactId>
|
||||
</dependency>
|
||||
<!-- udf-starter-aliyun-dysms-api -->
|
||||
<dependency>
|
||||
<groupId>org.itkk.udf</groupId>
|
||||
<artifactId>udf-starter-aliyun-dysms-api</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
||||
+50
@@ -0,0 +1,50 @@
|
||||
/**
|
||||
* IFileController.java
|
||||
* Created at 2017-05-26
|
||||
* Created by Administrator
|
||||
* Copyright (C) 2016 itkk.org, All rights reserved.
|
||||
*/
|
||||
package org.itkk.udf.aliyun.dysms.web;
|
||||
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiImplicitParams;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.itkk.udf.core.RestResponse;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMethod;
|
||||
|
||||
/**
|
||||
* 描述 : IAliuyunDysmsController
|
||||
*
|
||||
* @author Administrator
|
||||
*/
|
||||
@Api(value = "阿里云sms服务", consumes = "application/json", produces = "application/json",
|
||||
protocols = "http")
|
||||
@RequestMapping(value = "/service/aliyun/dysms")
|
||||
public interface IAliuyunDysmsController {
|
||||
|
||||
/**
|
||||
* 描述 : 发送短信验证码
|
||||
*
|
||||
* @return RestResponse<Boolean>
|
||||
*/
|
||||
@ApiOperation(value = "ALIYUN_DYSMS_SEND_VERIFICATION_CODE", notes = "发送短信验证码")
|
||||
@ApiImplicitParams({
|
||||
@ApiImplicitParam(paramType = "header", name = "phoneNumber", value = "手机号码", required = true, dataType = "string")
|
||||
})
|
||||
@RequestMapping(value = "send/verification/code", method = RequestMethod.POST)
|
||||
RestResponse<Boolean> sendVerificationCode();
|
||||
|
||||
/**
|
||||
* 描述 : 验证短信验证码
|
||||
*
|
||||
* @return RestResponse<Boolean>
|
||||
*/
|
||||
@ApiOperation(value = "ALIYUN_DYSMS_CHECK_VERIFICATION_CODE", notes = "验证短信验证码")
|
||||
@ApiImplicitParams({
|
||||
@ApiImplicitParam(paramType = "header", name = "verificationCode", value = "短信验证码", required = true, dataType = "string")
|
||||
})
|
||||
@RequestMapping(value = "check/verification/code", method = RequestMethod.POST)
|
||||
RestResponse<Boolean> checkVerificationCode();
|
||||
}
|
||||
+1
-1
@@ -29,7 +29,7 @@ import java.util.List;
|
||||
* @author Administrator
|
||||
*/
|
||||
@RestController
|
||||
public class AliyunOssController implements IAliuyinOssController {
|
||||
public class AliyunOssController implements IAliuyunOssController {
|
||||
|
||||
/**
|
||||
* ossWarpper
|
||||
|
||||
+2
-2
@@ -26,14 +26,14 @@ import java.io.IOException;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 描述 : IAliuyinOssController
|
||||
* 描述 : IAliuyunOssController
|
||||
*
|
||||
* @author Administrator
|
||||
*/
|
||||
@Api(value = "阿里云oss服务", consumes = "application/json", produces = "application/json",
|
||||
protocols = "http")
|
||||
@RequestMapping(value = "/service/aliyun/oss")
|
||||
public interface IAliuyinOssController {
|
||||
public interface IAliuyunOssController {
|
||||
|
||||
/**
|
||||
* 描述 : 根据key前缀获得阿里云oss的对象列表(公网)
|
||||
Reference in New Issue
Block a user