Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
Overview
Overview
Details
Activity
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
haoban3.0
haoban-manage3.0
Commits
c2c94f6d
Commit
c2c94f6d
authored
Apr 09, 2020
by
fudahua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
发送小程序消息
parent
70489123
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
52 additions
and
2 deletions
+52
-2
TestController.java
.../com/gic/haoban/manage/web/controller/TestController.java
+5
-2
QywxXcxSendMessageQo.java
...va/com/gic/haoban/manage/web/qo/QywxXcxSendMessageQo.java
+47
-0
No files found.
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/TestController.java
View file @
c2c94f6d
package
com
.
gic
.
haoban
.
manage
.
web
.
controller
;
import
com.gic.haoban.common.utils.EntityUtil
;
import
com.gic.haoban.common.utils.HaobanResponse
;
import
com.gic.haoban.manage.web.errCode.HaoBanErrCode
;
import
com.gic.haoban.manage.web.qo.QywxXcxSendMessageQo
;
import
com.gic.wechat.api.dto.qywx.QywxXcxSendMessageDTO
;
import
com.gic.wechat.api.service.qywx.QywxSuiteApiService
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
@@ -21,9 +23,10 @@ public class TestController extends WebBaseController {
private
QywxSuiteApiService
qywxSuiteApiService
;
@RequestMapping
(
"/send-message-test"
)
public
HaobanResponse
testSendMessage
(
QywxXcxSendMessageDTO
sendMessageDTO
)
{
public
HaobanResponse
testSendMessage
(
QywxXcxSendMessageQo
qo
)
{
QywxXcxSendMessageDTO
messageDTO
=
EntityUtil
.
changeEntityByOrika
(
QywxXcxSendMessageDTO
.
class
,
qo
);
boolean
b
=
qywxSuiteApiService
.
sendMessage
(
"ww9ede832a84b7ae5f"
,
"ww2c34dc56739bb105"
,
sendM
essageDTO
);
"ww2c34dc56739bb105"
,
m
essageDTO
);
if
(
b
)
{
return
resultResponse
(
HaoBanErrCode
.
ERR_1
);
}
else
{
...
...
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/qo/QywxXcxSendMessageQo.java
0 → 100644
View file @
c2c94f6d
package
com
.
gic
.
haoban
.
manage
.
web
.
qo
;
import
java.io.Serializable
;
/**
* Created by hua on 2020/4/8.
*/
public
class
QywxXcxSendMessageQo
implements
Serializable
{
private
String
userId
;
private
String
appid
;
private
String
page
;
private
String
title
;
private
String
description
;
public
String
getAppid
()
{
return
appid
;
}
public
void
setAppid
(
String
appid
)
{
this
.
appid
=
appid
;
}
public
String
getPage
()
{
return
page
;
}
public
void
setPage
(
String
page
)
{
this
.
page
=
page
;
}
public
String
getTitle
()
{
return
title
;
}
public
void
setTitle
(
String
title
)
{
this
.
title
=
title
;
}
public
String
getDescription
()
{
return
description
;
}
public
void
setDescription
(
String
description
)
{
this
.
description
=
description
;
}
}
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