Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 23 additions & 22 deletions circuit-api/pom.xml
Original file line number Diff line number Diff line change
@@ -1,26 +1,27 @@
<?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>
<parent>
<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>
<parent>
<groupId>com.lamp</groupId>
<artifactId>circuit</artifactId>
<version>0.0.1-SNAPSHOT</version>
</parent>
<groupId>com.lamp</groupId>
<artifactId>circuit</artifactId>
<artifactId>circuit-api</artifactId>
<version>0.0.1-SNAPSHOT</version>
</parent>
<groupId>com.lamp</groupId>
<artifactId>circuit-api</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>circuit-api</name>
<url>http://maven.apache.org</url>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
</dependencies>
<name>circuit-api</name>
<url>http://maven.apache.org</url>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
</dependencies>
</project>
16 changes: 10 additions & 6 deletions circuit-api/src/main/java/com/lamp/circuit/api/sms/SendSms.java
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
package com.lamp.circuit.api.sms;

import com.lamp.circuit.api.sms.message.SendSmsDetail;
import com.lamp.circuit.api.sms.message.SendSmsQuery;
import com.lamp.circuit.api.sms.message.SendSmsRequest;
import com.lamp.circuit.api.sms.message.SendSmsResponse;

public interface SendSms {
import java.util.List;

public interface SendSms {

void sendSms(SendSmsRequest sendSmsRequest );
void sendBatchSms();
void querySendDetails();
SendSmsResponse sendSms(SendSmsRequest sendSmsRequest );

SendSmsResponse sendBatchSms(List<SendSmsRequest> sendSmsRequestList);

SendSmsDetail querySendDetails(SendSmsQuery sendSmsQuery);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
/*
* frxs Inc. 湖南兴盛优选电子商务有限公司.
* Copyright (c) 2017-2019. All Rights Reserved.
*/
package com.lamp.circuit.api.sms.message;

/**
* @author ouyangzhaobing
* @version : BaseQuery.java,v 0.1 2020年07月17日 1:13 上午
*/
public class BaseQuery {
private Long pageNo = 1L;

private Long pageSize = 10L;

public void setPageNo(Long pageNo) {
this.pageNo = pageNo;
}

public void setPageSize(Long pageSize) {
this.pageSize = pageSize;
}

public Long getPageNo() {
return pageNo;
}

public Long getPageSize() {
return pageSize;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/*
* frxs Inc. 湖南兴盛优选电子商务有限公司.
* Copyright (c) 2017-2019. All Rights Reserved.
*/
package com.lamp.circuit.api.sms.message;

import com.lamp.circuit.api.Information;

/**
* @author ouyangzhaobing
* @version : SendBatchSms.java,v 0.1 2020年07月17日 12:57 上午
*/
public class SendBatchSms extends Information {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
/*
* frxs Inc. 湖南兴盛优选电子商务有限公司.
* Copyright (c) 2017-2019. All Rights Reserved.
*/
package com.lamp.circuit.api.sms.message;

import java.util.Date;

/**
* @author ouyangzhaobing
* @version : SendSmsDetail.java,v 0.1 2020年07月17日 1:17 上午
*/
public class SendSmsDetail {

private String code;

private String message;

private String requestId;

/**
* 发送总数
*/
private Long totalCount;

private String templateId;

/**
* 短信发送状态,包括:
* 1:等待回执。
* 2:发送失败。
* 3:发送成功。
*/
private int status;

private Date sendDate;

private Date receiveDate;

private String phoneNo;

private String content;

/**
* 拓展字段
*/
private String outId;

/**
* 运营商短信状态码。
* 短信发送成功:DELIVERED。
* 短信发送失败:失败错误码请参考错误码文档。
*/
private String errorCode;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/*
* frxs Inc. 湖南兴盛优选电子商务有限公司.
* Copyright (c) 2017-2019. All Rights Reserved.
*/
package com.lamp.circuit.api.sms.message;

import java.util.Date;

/**
* @author ouyangzhaobing
* @version : SendSmsQuery.java,v 0.1 2020年07月17日 1:15 上午
*/
public class SendSmsQuery extends BaseQuery {

private String phoneNo;

private Date sendDate;

private String bizId;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
/*
* frxs Inc. 湖南兴盛优选电子商务有限公司.
* Copyright (c) 2017-2019. All Rights Reserved.
*/
package com.lamp.circuit.api.sms.message;

/**
* @author ouyangzhaobing
* @version : SnedSmsResponse.java,v 0.1 2020年07月17日 12:43 上午
*/
public class SendSmsResponse {

/**
* 回执id,可以用来获取盖茨发送的详细信息如发送状态等
*/
private String bizId;

/**
* 请求状态码
* 返回OK代表请求成功
* 其他错误码详见错误码列表
*/
private String code;

/**
* 状态码的描述
*/
private String message;

/**
* 请求ID
*/
private String requestId;
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.