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
f4061a47
Commit
f4061a47
authored
Apr 21, 2020
by
danzhongqin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增结构
parent
528ba3c0
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
122 additions
and
0 deletions
+122
-0
MessageMapper.java
src/main/java/com/jz/sms/repository/MessageMapper.java
+13
-0
MessageService.java
src/main/java/com/jz/sms/service/MessageService.java
+42
-0
XfaceCreateTempLateWrapper.java
...z/sms/wrapper/maintenance/XfaceCreateTempLateWrapper.java
+27
-0
XfaceCreateTempLateWrapperImpl.java
...s/wrapper/maintenance/XfaceCreateTempLateWrapperImpl.java
+17
-0
MessageMapper.xml
src/main/resources/com.jz.sms.repository/MessageMapper.xml
+5
-0
messages.properties
src/main/resources/i18n/messages.properties
+4
-0
messages_en_US.properties
src/main/resources/i18n/messages_en_US.properties
+7
-0
messages_zh_CN.properties
src/main/resources/i18n/messages_zh_CN.properties
+7
-0
No files found.
src/main/java/com/jz/sms/repository/MessageMapper.java
0 → 100644
View file @
f4061a47
package
com
.
jz
.
sms
.
repository
;
import
org.springframework.stereotype.Repository
;
/**
* Mybatis 接口文件
*/
@Repository
public
interface
MessageMapper
{
// int createTemplate(XXXX....)
}
src/main/java/com/jz/sms/service/MessageService.java
0 → 100644
View file @
f4061a47
package
com
.
jz
.
sms
.
service
;
import
com.jz.sms.config.SMSConfig
;
import
com.jz.sms.dto.XfaceDmHubTemplateRequestDTO
;
import
com.jz.sms.dto.XfaceDmHubTemplateResponseDTO
;
import
com.jz.sms.repository.MessageMapper
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
@Service
public
class
MessageService
{
/** 基础配置 */
@Autowired
private
SMSConfig
smsComfig
;
/** 数据层 */
@Autowired
private
MessageMapper
messageMapper
;
/**
* 短信模板创建
* @param requestDTO
* @return
*/
public
XfaceDmHubTemplateResponseDTO
createTemplate
(
XfaceDmHubTemplateRequestDTO
requestDTO
)
{
XfaceDmHubTemplateResponseDTO
responseDTO
=
new
XfaceDmHubTemplateResponseDTO
();
try
{
// XfaceClTemplateRequestDTO clTemplateRequestDTO = new XfaceClTemplateRequestDTO();
// XfaceClTemplateResponseDTO clTemplateResponseDTO = new XfaceClTemplateResponseDTO();
// logger.info("短信通道请求URL:"+url);
// logger.info("短信通道返回内容:"+responseStr);
}
catch
(
Exception
exception
)
{
// 记录异常日志
throw
exception
;
}
return
responseDTO
;
}
}
src/main/java/com/jz/sms/wrapper/maintenance/XfaceCreateTempLateWrapper.java
0 → 100644
View file @
f4061a47
package
com
.
jz
.
sms
.
wrapper
.
maintenance
;
import
com.jz.sms.dto.XfaceDmHubTemplateRequestDTO
;
import
com.jz.sms.dto.XfaceDmHubTemplateResponseDTO
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.ResponseBody
;
import
org.springframework.web.bind.annotation.RestController
;
import
javax.validation.Valid
;
@RestController
//@Api(tags = "SMS0001 短信模板创建")
public
class
XfaceCreateTempLateWrapper
{
@Autowired
XfaceCreateTempLateWrapperImpl
xfaceCreateTempLateWrapperImpl
;
// @ApiOperation(value = "SMS0001 短信模板创建", httpMethod = "POST")
@PostMapping
(
value
=
"/sms/template/create"
)
@ResponseBody
public
XfaceDmHubTemplateResponseDTO
processRequest
(
@Valid
@RequestBody
XfaceDmHubTemplateRequestDTO
requestDTO
)
{
return
xfaceCreateTempLateWrapperImpl
.
doProcessRequest
(
requestDTO
);
}
}
src/main/java/com/jz/sms/wrapper/maintenance/XfaceCreateTempLateWrapperImpl.java
0 → 100644
View file @
f4061a47
package
com
.
jz
.
sms
.
wrapper
.
maintenance
;
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
;
public
class
XfaceCreateTempLateWrapperImpl
{
@Autowired
private
MessageService
messageService
;
public
XfaceDmHubTemplateResponseDTO
doProcessRequest
(
XfaceDmHubTemplateRequestDTO
requestDTO
)
{
return
messageService
.
createTemplate
(
requestDTO
);
}
}
src/main/resources/com.jz.sms.repository/MessageMapper.xml
0 → 100644
View file @
f4061a47
<!--<?xml version="1.0" encoding="UTF-8"?>-->
<!--<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">-->
<!--<mapper namespace="com.qianlian.cloud.tms.repository.BaApplicationConfigMapper">-->
<!--</mapper>-->
\ No newline at end of file
src/main/resources/i18n/messages.properties
0 → 100644
View file @
f4061a47
##########TMS错误码开始##########
120001
=
编号不存在。
##########TMS错误码结束##########
\ No newline at end of file
src/main/resources/i18n/messages_en_US.properties
0 → 100644
View file @
f4061a47
### TMS error code start
10001
=
验证码发送失败
10002
=
验证码已过期
10003
=
登陆失败
10004
=
账号不存在
10005
=
验证码错误
###
TMS
error
code
end
\ No newline at end of file
src/main/resources/i18n/messages_zh_CN.properties
0 → 100644
View file @
f4061a47
### TMS error code start
10001
=
验证码发送失败
10002
=
验证码已过期
10003
=
登陆失败
10004
=
账号不存在
10005
=
验证码错误
###
TMS
error
code
end
\ No newline at end of file
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