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
716063ae
Commit
716063ae
authored
Jun 08, 2020
by
qinxunjia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改返回值
parent
3e4de28d
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
27 deletions
+3
-27
DmHubApi.java
src/main/java/com/bgy/sms/channel/api/DmHubApi.java
+1
-2
DmHubSendResponse.java
src/main/java/com/bgy/sms/channel/dto/DmHubSendResponse.java
+0
-11
DmHubTemplateResponse.java
...n/java/com/bgy/sms/channel/dto/DmHubTemplateResponse.java
+1
-13
ResponseCode.java
src/main/java/com/bgy/sms/config/ResponseCode.java
+1
-1
No files found.
src/main/java/com/bgy/sms/channel/api/DmHubApi.java
View file @
716063ae
...
...
@@ -9,6 +9,7 @@ import org.slf4j.LoggerFactory;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
@SuppressWarnings
(
"Duplicates"
)
@RestController
@RequestMapping
()
public
class
DmHubApi
{
...
...
@@ -75,6 +76,4 @@ public class DmHubApi {
log
.
info
(
"**********单条发送出参*******:{}"
,
JSONObject
.
toJSONString
(
response
));
return
response
;
}
}
src/main/java/com/bgy/sms/channel/dto/DmHubSendResponse.java
View file @
716063ae
...
...
@@ -9,7 +9,6 @@ public class DmHubSendResponse implements Serializable {
private
static
final
long
serialVersionUID
=
1L
;
private
String
code
;
private
String
msg
;
public
DmHubSendResponse
()
{
...
...
@@ -17,12 +16,10 @@ public class DmHubSendResponse implements Serializable {
public
DmHubSendResponse
(
String
code
,
String
msg
)
{
this
.
code
=
code
;
this
.
msg
=
msg
;
}
public
DmHubSendResponse
(
ResponseCode
responseCode
)
{
this
.
code
=
responseCode
.
getCode
();
this
.
msg
=
responseCode
.
getMsg
();
}
public
String
getCode
()
{
...
...
@@ -33,19 +30,11 @@ public class DmHubSendResponse implements Serializable {
this
.
code
=
code
;
}
public
String
getMsg
()
{
return
msg
;
}
public
void
setMsg
(
String
msg
)
{
this
.
msg
=
msg
;
}
@Override
public
String
toString
()
{
return
"DmHubSendResponse{"
+
"code='"
+
code
+
'\''
+
", msg='"
+
msg
+
'\''
+
'}'
;
}
}
src/main/java/com/bgy/sms/channel/dto/DmHubTemplateResponse.java
View file @
716063ae
...
...
@@ -10,23 +10,19 @@ public class DmHubTemplateResponse implements Serializable {
private
String
code
;
private
String
msg
;
public
DmHubTemplateResponse
()
{
}
public
DmHubTemplateResponse
(
String
code
,
String
msg
)
{
this
.
code
=
code
;
this
.
msg
=
msg
;
}
public
DmHubTemplateResponse
(
ResponseCode
responseCode
)
{
this
.
code
=
responseCode
.
getCode
();
this
.
msg
=
responseCode
.
getMsg
();
}
public
String
getCode
()
{
return
code
;
}
...
...
@@ -34,12 +30,4 @@ public class DmHubTemplateResponse implements Serializable {
public
void
setCode
(
String
code
)
{
this
.
code
=
code
;
}
public
String
getMsg
()
{
return
msg
;
}
public
void
setMsg
(
String
msg
)
{
this
.
msg
=
msg
;
}
}
src/main/java/com/bgy/sms/config/ResponseCode.java
View file @
716063ae
...
...
@@ -2,7 +2,7 @@ package com.bgy.sms.config;
public
enum
ResponseCode
{
// 系统判断错误
SUCCESS
(
"
200
"
,
"处理成功"
),
SUCCESS
(
"
SUCCESS
"
,
"处理成功"
),
UNKNOWN_TEMPLATE_TYPE
(
"500"
,
"未知模板类型"
),
TEMPLATE_ALREADY_EXISTED
(
"500"
,
"DM Hub模板ID冲突"
),
SYSTEM_ERROR
(
"99"
,
"系统异常:"
),
...
...
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