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
357611e6
Commit
357611e6
authored
Apr 09, 2020
by
fudahua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
发送小程序消息
parent
c2c94f6d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
0 deletions
+13
-0
TestController.java
.../com/gic/haoban/manage/web/controller/TestController.java
+6
-0
QywxXcxSendMessageQo.java
...va/com/gic/haoban/manage/web/qo/QywxXcxSendMessageQo.java
+7
-0
No files found.
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/TestController.java
View file @
357611e6
...
...
@@ -10,6 +10,8 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.util.ArrayList
;
/**
* Created 2020/4/9.
*
...
...
@@ -25,6 +27,10 @@ public class TestController extends WebBaseController {
@RequestMapping
(
"/send-message-test"
)
public
HaobanResponse
testSendMessage
(
QywxXcxSendMessageQo
qo
)
{
QywxXcxSendMessageDTO
messageDTO
=
EntityUtil
.
changeEntityByOrika
(
QywxXcxSendMessageDTO
.
class
,
qo
);
ArrayList
<
String
>
list
=
new
ArrayList
<>();
list
.
add
(
qo
.
getUserId
());
messageDTO
.
setUserIds
(
list
);
boolean
b
=
qywxSuiteApiService
.
sendMessage
(
"ww9ede832a84b7ae5f"
,
"ww2c34dc56739bb105"
,
messageDTO
);
if
(
b
)
{
...
...
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/qo/QywxXcxSendMessageQo.java
View file @
357611e6
...
...
@@ -12,6 +12,13 @@ public class QywxXcxSendMessageQo implements Serializable {
private
String
title
;
private
String
description
;
public
String
getUserId
()
{
return
userId
;
}
public
void
setUserId
(
String
userId
)
{
this
.
userId
=
userId
;
}
public
String
getAppid
()
{
return
appid
;
...
...
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