Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dmhub-plugin
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
qinxunjia
dmhub-plugin
Commits
b7db143f
Commit
b7db143f
authored
Apr 21, 2020
by
qinxunjia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增DTO,修改类名
parent
16449ffb
Changes
14
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
477 additions
and
11 deletions
+477
-11
BizController.java
src/main/java/com/jz/sms/api/BizController.java
+2
-2
CLSmsService.java
src/main/java/com/jz/sms/chuanlan/service/CLSmsService.java
+17
-0
CLSmsServiceImpl.java
...va/com/jz/sms/chuanlan/service/impl/CLSmsServiceImpl.java
+17
-3
XfaceClSendFiexdRequestDTO.java
src/main/java/com/jz/sms/dto/XfaceClSendFiexdRequestDTO.java
+145
-0
XfaceClSendFiexdResponseDTO.java
...main/java/com/jz/sms/dto/XfaceClSendFiexdResponseDTO.java
+58
-0
XfaceClSendVariableRequestDTO.java
...in/java/com/jz/sms/dto/XfaceClSendVariableRequestDTO.java
+132
-0
XfaceClSendVariableResponseDTO.java
...n/java/com/jz/sms/dto/XfaceClSendVariableResponseDTO.java
+82
-0
XfaceDmHubBatchSendRequestDTO.java
...in/java/com/jz/sms/dto/XfaceDmHubBatchSendRequestDTO.java
+4
-0
XfaceDmHubBatchSendResponseDTO.java
...n/java/com/jz/sms/dto/XfaceDmHubBatchSendResponseDTO.java
+4
-0
XfaceDmHubSendRequestDTO.java
src/main/java/com/jz/sms/dto/XfaceDmHubSendRequestDTO.java
+4
-0
XfaceDmHubSendResponseDTO.java
src/main/java/com/jz/sms/dto/XfaceDmHubSendResponseDTO.java
+4
-0
MessageService.java
src/main/java/com/jz/sms/service/MessageService.java
+2
-6
XfaceTempLateListWrapperImpl.java
.../jz/sms/wrapper/inquiry/XfaceTempLateListWrapperImpl.java
+4
-0
XfaceCreateTempLateWrapperImpl.java
...s/wrapper/maintenance/XfaceCreateTempLateWrapperImpl.java
+2
-0
No files found.
src/main/java/com/jz/sms/api/BizController.java
View file @
b7db143f
package
com
.
jz
.
sms
.
api
;
import
com.jz.sms.chuanlan.service.
Send
Service
;
import
com.jz.sms.chuanlan.service.
CLSms
Service
;
import
com.jz.sms.dto.XfaceDmHubTemplateRequestDTO
;
import
com.jz.sms.dto.XfaceDmHubTemplateResponseDTO
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
@@ -12,7 +12,7 @@ import org.springframework.web.bind.annotation.RestController;
public
class
BizController
{
@Autowired
private
Send
Service
service
;
private
CLSms
Service
service
;
@RequestMapping
(
"index"
)
public
String
index
()
{
...
...
src/main/java/com/jz/sms/chuanlan/service/
Send
Service.java
→
src/main/java/com/jz/sms/chuanlan/service/
CLSms
Service.java
View file @
b7db143f
...
...
@@ -3,8 +3,15 @@ package com.jz.sms.chuanlan.service;
import
com.jz.sms.dto.XfaceDmHubTemplateRequestDTO
;
import
com.jz.sms.dto.XfaceDmHubTemplateResponseDTO
;
public
interface
Send
Service
{
public
interface
CLSms
Service
{
XfaceDmHubTemplateResponseDTO
send
(
XfaceDmHubTemplateRequestDTO
requestDTO
);
XfaceDmHubTemplateResponseDTO
createTemplate
(
XfaceDmHubTemplateRequestDTO
requestDTO
);
XfaceDmHubTemplateResponseDTO
sendByFixed
(
XfaceDmHubTemplateRequestDTO
requestDTO
);
XfaceDmHubTemplateResponseDTO
sendByVariable
(
XfaceDmHubTemplateRequestDTO
requestDTO
);
}
src/main/java/com/jz/sms/chuanlan/service/impl/
Send
ServiceImpl.java
→
src/main/java/com/jz/sms/chuanlan/service/impl/
CLSms
ServiceImpl.java
View file @
b7db143f
package
com
.
jz
.
sms
.
chuanlan
.
service
.
impl
;
import
com.jz.sms.chuanlan.service.
Send
Service
;
import
com.jz.sms.chuanlan.service.
CLSms
Service
;
import
com.jz.sms.dto.XfaceClTemplateRequestDTO
;
import
com.jz.sms.dto.XfaceClTemplateResponseDTO
;
import
com.jz.sms.dto.XfaceDmHubTemplateRequestDTO
;
...
...
@@ -10,11 +10,11 @@ import org.springframework.stereotype.Service;
@Service
public
class
SendServiceImpl
implements
Send
Service
{
public
class
CLSmsServiceImpl
implements
CLSms
Service
{
@Override
public
XfaceDmHubTemplateResponseDTO
send
(
XfaceDmHubTemplateRequestDTO
requestDTO
)
{
public
XfaceDmHubTemplateResponseDTO
createTemplate
(
XfaceDmHubTemplateRequestDTO
requestDTO
)
{
/**
* 调用创蓝的业务逻辑.....
* requestDTO.getXXX....
...
...
@@ -29,4 +29,18 @@ public class SendServiceImpl implements SendService {
return
responseDTO
;
}
@Override
public
XfaceDmHubTemplateResponseDTO
sendByFixed
(
XfaceDmHubTemplateRequestDTO
requestDTO
)
{
return
null
;
}
@Override
public
XfaceDmHubTemplateResponseDTO
sendByVariable
(
XfaceDmHubTemplateRequestDTO
requestDTO
)
{
return
null
;
}
}
src/main/java/com/jz/sms/dto/XfaceClSendFiexdRequestDTO.java
0 → 100644
View file @
b7db143f
package
com
.
jz
.
sms
.
dto
;
public
class
XfaceClSendFiexdRequestDTO
{
/**
* 创蓝API账号,必填
*/
private
String
account
;
/**
* 创蓝API密码,必填
*/
private
String
password
;
/**
* 短信内容。长度不能超过536个字符,必填
*/
private
String
msg
;
/**
* 机号码。多个手机号码使用英文逗号分隔,必填
*/
private
String
phone
;
/**
* 定时发送短信时间。格式为yyyyMMddHHmm,值小于或等于当前时间则立即发送,默认立即发送,选填
*/
private
String
sendtime
;
/**
* 是否需要状态报告(默认false),选填
*/
private
String
report
;
/**
* 下发短信号码扩展码,纯数字,建议1-3位,选填
*/
private
String
extend
;
/**
* 该条短信在您业务系统内的ID,如订单号或者短信发送记录流水号,选填
*/
private
String
uid
;
public
XfaceClSendFiexdRequestDTO
()
{
}
public
XfaceClSendFiexdRequestDTO
(
String
account
,
String
password
,
String
msg
,
String
phone
)
{
super
();
this
.
account
=
account
;
this
.
password
=
password
;
this
.
msg
=
msg
;
this
.
phone
=
phone
;
}
public
XfaceClSendFiexdRequestDTO
(
String
account
,
String
password
,
String
msg
,
String
phone
,
String
report
)
{
super
();
this
.
account
=
account
;
this
.
password
=
password
;
this
.
msg
=
msg
;
this
.
phone
=
phone
;
this
.
report
=
report
;
}
public
XfaceClSendFiexdRequestDTO
(
String
account
,
String
password
,
String
msg
,
String
phone
,
String
report
,
String
sendtime
)
{
super
();
this
.
account
=
account
;
this
.
password
=
password
;
this
.
msg
=
msg
;
this
.
phone
=
phone
;
this
.
sendtime
=
sendtime
;
this
.
report
=
report
;
}
public
XfaceClSendFiexdRequestDTO
(
String
account
,
String
password
,
String
msg
,
String
phone
,
String
sendtime
,
String
report
,
String
uid
)
{
super
();
this
.
account
=
account
;
this
.
password
=
password
;
this
.
msg
=
msg
;
this
.
phone
=
phone
;
this
.
sendtime
=
sendtime
;
this
.
report
=
report
;
this
.
uid
=
uid
;
}
public
String
getAccount
()
{
return
account
;
}
public
void
setAccount
(
String
account
)
{
this
.
account
=
account
;
}
public
String
getPassword
()
{
return
password
;
}
public
void
setPassword
(
String
password
)
{
this
.
password
=
password
;
}
public
String
getMsg
()
{
return
msg
;
}
public
void
setMsg
(
String
msg
)
{
this
.
msg
=
msg
;
}
public
String
getPhone
()
{
return
phone
;
}
public
void
setPhone
(
String
phone
)
{
this
.
phone
=
phone
;
}
public
String
getSendtime
()
{
return
sendtime
;
}
public
void
setSendtime
(
String
sendtime
)
{
this
.
sendtime
=
sendtime
;
}
public
String
getReport
()
{
return
report
;
}
public
void
setReport
(
String
report
)
{
this
.
report
=
report
;
}
public
String
getExtend
()
{
return
extend
;
}
public
void
setExtend
(
String
extend
)
{
this
.
extend
=
extend
;
}
public
String
getUid
()
{
return
uid
;
}
public
void
setUid
(
String
uid
)
{
this
.
uid
=
uid
;
}
}
src/main/java/com/jz/sms/dto/XfaceClSendFiexdResponseDTO.java
0 → 100644
View file @
b7db143f
package
com
.
jz
.
sms
.
dto
;
public
class
XfaceClSendFiexdResponseDTO
{
/**
* 响应时间
*/
private
String
time
;
/**
* 消息id
*/
private
String
msgId
;
/**
* 状态码说明(成功返回空)
*/
private
String
errorMsg
;
/**
* 状态码(详细参考提交响应状态码)
*/
private
String
code
;
public
String
getTime
()
{
return
time
;
}
public
void
setTime
(
String
time
)
{
this
.
time
=
time
;
}
public
String
getMsgId
()
{
return
msgId
;
}
public
void
setMsgId
(
String
msgId
)
{
this
.
msgId
=
msgId
;
}
public
String
getErrorMsg
()
{
return
errorMsg
;
}
public
void
setErrorMsg
(
String
errorMsg
)
{
this
.
errorMsg
=
errorMsg
;
}
public
String
getCode
()
{
return
code
;
}
public
void
setCode
(
String
code
)
{
this
.
code
=
code
;
}
@Override
public
String
toString
()
{
return
"SmsSingleResponse [time="
+
time
+
", msgId="
+
msgId
+
", errorMsg="
+
errorMsg
+
", code="
+
code
+
"]"
;
}
}
src/main/java/com/jz/sms/dto/XfaceClSendVariableRequestDTO.java
0 → 100644
View file @
b7db143f
package
com
.
jz
.
sms
.
dto
;
public
class
XfaceClSendVariableRequestDTO
{
/**
* 创蓝API账号,必填
*/
private
String
account
;
/**
* 创蓝API密码,必填
*/
private
String
password
;
/**
* 短信内容。长度不能超过536个字符,必填
*/
private
String
msg
;
/**
* 手机号码和变量参数,多组参数使用英文分号;区分,必填
*/
private
String
params
;
/**
* 定时发送短信时间。格式为yyyyMMddHHmm,值小于或等于当前时间则立即发送,默认立即发送,选填
*/
private
String
sendtime
;
/**
* 是否需要状态报告(默认false),选填
*/
private
String
report
;
/**
* 下发短信号码扩展码,纯数字,建议1-3位,选填
*/
private
String
extend
;
/**
* 该条短信在您业务系统内的ID,如订单号或者短信发送记录流水号,选填
*/
private
String
uid
;
public
XfaceClSendVariableRequestDTO
()
{
}
public
XfaceClSendVariableRequestDTO
(
String
account
,
String
password
,
String
msg
,
String
params
)
{
super
();
this
.
account
=
account
;
this
.
password
=
password
;
this
.
msg
=
msg
;
this
.
params
=
params
;
}
public
XfaceClSendVariableRequestDTO
(
String
account
,
String
password
,
String
msg
,
String
params
,
String
report
)
{
super
();
this
.
account
=
account
;
this
.
password
=
password
;
this
.
msg
=
msg
;
this
.
params
=
params
;
this
.
report
=
report
;
}
// public SmsVarableRequest(String account, String password, String msg, String params, String sendtime) {
// super();
// this.account = account;
// this.password = password;
// this.msg = msg;
// this.params = params;
// this.sendtime = sendtime;
// }
public
String
getAccount
()
{
return
account
;
}
public
void
setAccount
(
String
account
)
{
this
.
account
=
account
;
}
public
String
getPassword
()
{
return
password
;
}
public
void
setPassword
(
String
password
)
{
this
.
password
=
password
;
}
public
String
getMsg
()
{
return
msg
;
}
public
void
setMsg
(
String
msg
)
{
this
.
msg
=
msg
;
}
public
String
getSendtime
()
{
return
sendtime
;
}
public
void
setSendtime
(
String
sendtime
)
{
this
.
sendtime
=
sendtime
;
}
public
String
getReport
()
{
return
report
;
}
public
void
setReport
(
String
report
)
{
this
.
report
=
report
;
}
public
String
getExtend
()
{
return
extend
;
}
public
void
setExtend
(
String
extend
)
{
this
.
extend
=
extend
;
}
public
String
getUid
()
{
return
uid
;
}
public
void
setUid
(
String
uid
)
{
this
.
uid
=
uid
;
}
public
String
getParams
()
{
return
params
;
}
public
void
setParams
(
String
params
)
{
this
.
params
=
params
;
}
}
src/main/java/com/jz/sms/dto/XfaceClSendVariableResponseDTO.java
0 → 100644
View file @
b7db143f
package
com
.
jz
.
sms
.
dto
;
public
class
XfaceClSendVariableResponseDTO
{
/**
* 响应时间
*/
private
String
time
;
/**
* 消息id
*/
private
String
msgId
;
/**
* 状态码说明(成功返回空)
*/
private
String
errorMsg
;
/**
* 失败的个数
*/
private
String
failNum
;
/**
* 成功的个数
*/
private
String
successNum
;
/**
* 状态码(详细参考提交响应状态码)
*/
private
String
code
;
public
String
getTime
()
{
return
time
;
}
public
void
setTime
(
String
time
)
{
this
.
time
=
time
;
}
public
String
getMsgId
()
{
return
msgId
;
}
public
void
setMsgId
(
String
msgId
)
{
this
.
msgId
=
msgId
;
}
public
String
getErrorMsg
()
{
return
errorMsg
;
}
public
void
setErrorMsg
(
String
errorMsg
)
{
this
.
errorMsg
=
errorMsg
;
}
public
String
getCode
()
{
return
code
;
}
public
void
setCode
(
String
code
)
{
this
.
code
=
code
;
}
public
String
getFailNum
()
{
return
failNum
;
}
public
void
setFailNum
(
String
failNum
)
{
this
.
failNum
=
failNum
;
}
public
String
getSuccessNum
()
{
return
successNum
;
}
public
void
setSuccessNum
(
String
successNum
)
{
this
.
successNum
=
successNum
;
}
@Override
public
String
toString
()
{
return
"SmsVarableResponse [time="
+
time
+
", msgId="
+
msgId
+
", errorMsg="
+
errorMsg
+
", failNum="
+
failNum
+
", successNum="
+
successNum
+
", code="
+
code
+
"]"
;
}
}
src/main/java/com/jz/sms/dto/XfaceDmHubBatchSendRequestDTO.java
0 → 100644
View file @
b7db143f
package
com
.
jz
.
sms
.
dto
;
public
class
XfaceDmHubBatchSendRequestDTO
{
}
src/main/java/com/jz/sms/dto/XfaceDmHubBatchSendResponseDTO.java
0 → 100644
View file @
b7db143f
package
com
.
jz
.
sms
.
dto
;
public
class
XfaceDmHubBatchSendResponseDTO
{
}
src/main/java/com/jz/sms/dto/XfaceDmHubSendRequestDTO.java
0 → 100644
View file @
b7db143f
package
com
.
jz
.
sms
.
dto
;
public
class
XfaceDmHubSendRequestDTO
{
}
src/main/java/com/jz/sms/dto/XfaceDmHubSendResponseDTO.java
0 → 100644
View file @
b7db143f
package
com
.
jz
.
sms
.
dto
;
public
class
XfaceDmHubSendResponseDTO
{
}
src/main/java/com/jz/sms/service/MessageService.java
View file @
b7db143f
...
...
@@ -10,13 +10,9 @@ import org.springframework.stereotype.Service;
@Service
public
class
MessageService
{
/** 基础配置 */
@Autowired
private
SMSConfig
smsComfig
;
/** 数据层 */
@Autowired
private
MessageMapper
messageMapper
;
//
@Autowired
//
private MessageMapper messageMapper;
/**
* 短信模板创建
...
...
src/main/java/com/jz/sms/wrapper/inquiry/XfaceTempLateListWrapperImpl.java
View file @
b7db143f
package
com
.
jz
.
sms
.
wrapper
.
inquiry
;
import
org.springframework.stereotype.Service
;
@Service
public
class
XfaceTempLateListWrapperImpl
{
}
src/main/java/com/jz/sms/wrapper/maintenance/XfaceCreateTempLateWrapperImpl.java
View file @
b7db143f
...
...
@@ -4,7 +4,9 @@ import com.jz.sms.dto.XfaceDmHubTemplateRequestDTO;
import
com.jz.sms.dto.XfaceDmHubTemplateResponseDTO
;
import
com.jz.sms.service.MessageService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
@Service
public
class
XfaceCreateTempLateWrapperImpl
{
@Autowired
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment