Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
meibuyu-micro
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
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
without authentication
meibuyu-micro
Commits
897ce0b9
Commit
897ce0b9
authored
May 27, 2020
by
jiangkebao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化发送消息
parent
0eb1dfb7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
3 deletions
+13
-3
DingDepartmentServiceInterface.php
...ce/Interfaces/DingTalk/DingDepartmentServiceInterface.php
+7
-0
DingMessageServiceInterface.php
...rvice/Interfaces/DingTalk/DingMessageServiceInterface.php
+6
-3
No files found.
src/Service/Interfaces/DingTalk/DingDepartmentServiceInterface.php
View file @
897ce0b9
...
...
@@ -10,5 +10,12 @@ namespace Meibuyu\Micro\Service\Interfaces\DingTalk;
interface
DingDepartmentServiceInterface
{
/**
* 获取部门列表
* @param null $id 部门id
* @param bool $isFetchChild 是否获取子部门
* @param null $lang
* @return array
*/
public
function
getDepartmentList
(
$id
=
null
,
$isFetchChild
=
false
,
$lang
=
null
)
:
array
;
}
src/Service/Interfaces/DingTalk/DingMessageServiceInterface.php
View file @
897ce0b9
...
...
@@ -28,9 +28,12 @@ interface DingMessageServiceInterface
/**
* 发送工作通知消息
* @param array $params
* ['msg' => {"msgtype":"text","text":{"content":"消息内容"}},'userid_list' => "5360236526369319,155724556824201930"]
* ['msg' => {"msgtype":"text","text":{"content":"消息内容"}},'to_all_user' => "true"]
* ['msg' => {"msgtype":"text","text":{"content":"消息内容"}},'dept_id_list' => "12,34"]
* 发送给多个用户userid_list userid用逗号分隔
* ['userid_list' => "016740060622772430,251201234433774424",'msg' => '钉钉消息测试','msgtype' => 'text'];
* 发送给所有人
* ['dept_id_list' => "1,2",'msg' => '钉钉消息测试','msgtype' => 'text'];
* 发送给多个部门 部门用逗号分隔
* ['to_all_user' => "true",'msg' => '钉钉消息测试','msgtype' => 'text'];
* @return mixed
*/
public
function
sendCorporationMessage
(
$params
);
...
...
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