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
c86feced
Commit
c86feced
authored
May 27, 2020
by
jiangkebao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
钉钉消息
parent
461a6260
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
26 deletions
+36
-26
DingAuthServiceInterface.php
src/Service/Interfaces/DingTalk/DingAuthServiceInterface.php
+0
-19
DingMessageServiceInterface.php
...rvice/Interfaces/DingTalk/DingMessageServiceInterface.php
+29
-0
DingUserServiceInterface.php
src/Service/Interfaces/DingTalk/DingUserServiceInterface.php
+7
-7
No files found.
src/Service/Interfaces/DingTalk/DingAuthServiceInterface.php
deleted
100644 → 0
View file @
461a6260
<?php
/**
* Created by PhpStorm.
* User: 姜克保
* Date: 2020/5/20
* Time: 15:48
*/
namespace
Meibuyu\Micro\Service\Interfaces\DingTalk
;
interface
DingAuthServiceInterface
{
/**
* 通过临时授权码获取用户信息
* @param string $code 临时授权码
* @return array
*/
public
function
getDingUserByTempCode
(
$code
)
:
array
;
}
src/Service/Interfaces/DingTalk/DingMessageServiceInterface.php
View file @
c86feced
...
...
@@ -8,7 +8,36 @@
namespace
Meibuyu\Micro\Service\Interfaces\DingTalk
;
use
phpDocumentor\Reflection\Types\Mixed_
;
interface
DingMessageServiceInterface
{
/**
* 发送普通消息
*
* @param string $sender 消息发送者 userId
* @param string $cid 群会话或者个人会话的id,通过JSAPI接口唤起联系人界面选择会话获取会话cid;小程序参考获取会话信息,H5微应用参考获取会话信息
* @param array $message 消息内容,消息类型和样例可参考“消息类型与数据格式”文档。最长不超过2048个字节
*
* @return mixed
*/
public
function
sendGeneralMessage
(
$sender
,
$cid
,
$message
);
/**
* 发送工作通知消息
*
* @param array $params
*
* @return mixed
*/
public
function
sendCorporationMessage
(
$params
);
/**
* @param int $taskId
*
* @return mixed
*/
public
function
corporationMessage
(
$taskId
);
}
src/Service/Interfaces/DingTalk/DingUserServiceInterface.php
View file @
c86feced
...
...
@@ -16,22 +16,22 @@ interface DingUserServiceInterface
*/
public
function
getByDingUserId
(
$ding_user_id
)
:
array
;
/**
* 通过部门id获取部门分页用户列表
* @param
int
$departmentId 部门id
* @param
string
$departmentId 部门id
* @param int $offset
* @param int $size
* @param string|null $order
* @param string|null $lang
* @return array
*/
public
function
getDepartmentUsers
(
int
$departmentId
,
int
$offset
,
int
$size
,
string
$order
=
null
,
string
$lang
=
null
)
:
array
;
public
function
getDepartmentUsers
(
string
$departmentId
,
int
$offset
,
int
$size
,
string
$order
=
null
,
string
$lang
=
null
)
:
array
;
/**
* 通过
Unionid获取用户id
* @param
int $unionid unionid
* @return
int
* 通过
临时授权码获取用户信息
* @param
string $code 临时授权码
* @return
array
*/
public
function
getUseridByUnionid
(
int
$unionid
)
:
int
;
public
function
getDingUserByTempCode
(
$code
)
:
array
;
}
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