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
52fa15b7
Commit
52fa15b7
authored
Apr 24, 2020
by
qinxunjia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加一些逻辑结构
parent
a0bc7a79
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
51 additions
and
5 deletions
+51
-5
DmHubApi.java
src/main/java/com/jz/sms/api/DmHubApi.java
+2
-2
ChuangLanSmsServiceImpl.java
...z/sms/chuanglan/service/impl/ChuangLanSmsServiceImpl.java
+2
-2
DmHubService.java
src/main/java/com/jz/sms/dmHub/service/DmHubService.java
+23
-0
DmHubServiceImpl.java
.../java/com/jz/sms/dmHub/service/impl/DmHubServiceImpl.java
+24
-0
OkHttpUtil.java
src/main/java/com/jz/sms/util/OkHttpUtil.java
+0
-1
No files found.
src/main/java/com/jz/sms/api/
BizController
.java
→
src/main/java/com/jz/sms/api/
DmHubApi
.java
View file @
52fa15b7
...
...
@@ -10,9 +10,9 @@ import org.springframework.web.bind.annotation.*;
@RestController
@RequestMapping
(
"/test"
)
public
class
BizController
{
public
class
DmHubApi
{
private
static
final
Logger
log
=
LoggerFactory
.
getLogger
(
BizController
.
class
);
private
static
final
Logger
log
=
LoggerFactory
.
getLogger
(
DmHubApi
.
class
);
@Autowired
...
...
src/main/java/com/jz/sms/chuanglan/service/impl/ChuangLanSmsServiceImpl.java
View file @
52fa15b7
...
...
@@ -4,7 +4,7 @@ package com.jz.sms.chuanglan.service.impl;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONObject
;
import
com.baomidou.mybatisplus.mapper.EntityWrapper
;
import
com.jz.sms.api.
BizController
;
import
com.jz.sms.api.
DmHubApi
;
import
com.jz.sms.chuanglan.dto.*
;
import
com.jz.sms.chuanglan.service.ChuangLanSmsService
;
import
com.jz.sms.chuanglan.utils.ChuangLanSmsUtil
;
...
...
@@ -30,7 +30,7 @@ import java.util.regex.Pattern;
@Service
public
class
ChuangLanSmsServiceImpl
implements
ChuangLanSmsService
{
private
static
final
Logger
log
=
LoggerFactory
.
getLogger
(
BizController
.
class
);
private
static
final
Logger
log
=
LoggerFactory
.
getLogger
(
DmHubApi
.
class
);
private
static
final
String
SUCCESS
=
"success"
;
private
static
final
String
ERROR
=
"error"
;
private
static
final
String
CODE
=
"code"
;
...
...
src/main/java/com/jz/sms/dmHub/service/DmHubService.java
0 → 100644
View file @
52fa15b7
package
com
.
jz
.
sms
.
dmHub
.
service
;
import
java.util.Map
;
public
interface
DmHubService
{
/**
* 获取DM hub token,用户请求DM hub接口
*
* @param accInfo
* @return token信息
*/
String
getToken
(
Map
<
String
,
Object
>
accInfo
);
/**
* 回执报告给DM hub
*
* @param reportInfo
* @return
*/
Map
<
String
,
Object
>
smsReport
(
Map
<
String
,
Object
>
reportInfo
);
}
src/main/java/com/jz/sms/dmHub/service/impl/DmHubServiceImpl.java
0 → 100644
View file @
52fa15b7
package
com
.
jz
.
sms
.
dmHub
.
service
.
impl
;
import
com.jz.sms.dmHub.service.DmHubService
;
import
org.springframework.stereotype.Service
;
import
java.util.Map
;
/**
* Dm hub系统交互业务层
*/
@Service
public
class
DmHubServiceImpl
implements
DmHubService
{
@Override
public
String
getToken
(
Map
<
String
,
Object
>
accInfo
)
{
return
null
;
}
@Override
public
Map
<
String
,
Object
>
smsReport
(
Map
<
String
,
Object
>
accInfo
)
{
return
null
;
}
}
src/main/java/com/jz/sms/util/OkHttpUtil.java
View file @
52fa15b7
...
...
@@ -2,7 +2,6 @@ package com.jz.sms.util;
import
com.baomidou.mybatisplus.toolkit.MapUtils
;
import
com.jz.sms.api.BizController
;
import
okhttp3.*
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
...
...
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