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
c2f035e1
Commit
c2f035e1
authored
May 26, 2020
by
jiangkebao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
创建钉钉服务
parent
986b2f8e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
43 additions
and
9 deletions
+43
-9
DingAuthServiceInterface.php
src/Service/Interfaces/DingTalk/DingAuthServiceInterface.php
+20
-0
DingDepartmentServiceInterface.php
...ce/Interfaces/DingTalk/DingDepartmentServiceInterface.php
+14
-0
DingUserServiceInterface.php
src/Service/Interfaces/DingTalk/DingUserServiceInterface.php
+9
-9
No files found.
src/Service/Interfaces/DingTalk/DingAuthServiceInterface.php
0 → 100644
View file @
c2f035e1
<?php
/**
* Created by PhpStorm.
* User: 姜克保
* Date: 2020/5/20
* Time: 15:48
*/
namespace
Meibuyu\Micro\Service\Interfaces\DingTalk
;
interface
DingAuthServiceInterface
{
/**
* 通过临时授权码获取用户信息
* @param $code 临时授权码
* @param $state 用于防止重放攻击,开发者可以根据此信息来判断redirect_uri只能执行一次来避免重放攻击
* @return array
*/
public
function
getDingUserByTempCode
(
$code
,
$state
)
:
array
;
}
src/Service/Interfaces/DingTalk/DingDepartmentServiceInterface.php
0 → 100644
View file @
c2f035e1
<?php
/**
* Created by PhpStorm.
* User: 姜克保
* Date: 2020/5/20
* Time: 15:48
*/
namespace
Meibuyu\Micro\Service\Interfaces\DingTalk
;
interface
DingDepartmentServiceInterface
{
public
function
getDepartmentList
(
$id
=
null
,
$isFetchChild
=
false
,
$lang
=
null
)
:
array
;
}
src/Service/Interfaces/DingUserServiceInterface.php
→
src/Service/Interfaces/Ding
Talk/Ding
UserServiceInterface.php
View file @
c2f035e1
...
@@ -6,20 +6,20 @@
...
@@ -6,20 +6,20 @@
* Time: 15:48
* Time: 15:48
*/
*/
namespace
Meibuyu\Micro\Service\Interfaces
;
namespace
Meibuyu\Micro\Service\Interfaces
\DingTalk
;
interface
DingUserServiceInterface
interface
DingUserServiceInterface
{
{
/**
/** 通过用户id获取单个用户信息
* 通过用户id获取单个用户信息
* @param string $ding_user_id 钉钉用户id
* @param int $id
* @return array 钉钉用户信息
* @return array
*/
*/
public
function
getById
(
int
$id
)
:
array
;
public
function
getByDingUserId
(
$ding_user_id
)
:
array
;
/**
/**
* 通过部门id获取部门用户列表
* 通过部门id获取部门
分页
用户列表
* @param int $departmentId
* @param int $departmentId
部门id
* @param int $offset
* @param int $offset
* @param int $size
* @param int $size
* @param string|null $order
* @param string|null $order
...
@@ -30,7 +30,7 @@ interface DingUserServiceInterface
...
@@ -30,7 +30,7 @@ interface DingUserServiceInterface
/**
/**
* 通过Unionid获取用户id
* 通过Unionid获取用户id
* @param int $unionid
* @param int $unionid
unionid
* @return int
* @return int
*/
*/
public
function
getUseridByUnionid
(
int
$unionid
)
:
int
;
public
function
getUseridByUnionid
(
int
$unionid
)
:
int
;
...
...
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