Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dingtalk-sdk
Project
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
open-source
dingtalk-sdk
Commits
858363cd
Commit
858363cd
authored
Sep 02, 2020
by
Francis Zhou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix const namespaec issue
parent
0330129a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
corp_conversation.rb
lib/dingtalk/corp_conversation.rb
+4
-4
department.rb
lib/dingtalk/department.rb
+2
-2
No files found.
lib/dingtalk/corp_conversation.rb
View file @
858363cd
...
...
@@ -7,7 +7,7 @@ module Dingtalk
# 发送工作通知消息
# {https://ding-doc.dingtalk.com/doc#/serverapi2/pgoxpy}
add_request
:send_corp_conversation
,
:post
,
SEND_CORP_CONVERSATION
do
|
request
|
add_request
:send_corp_conversation
,
:post
,
Dingtalk
::
RequestUrl
::
SEND_CORP_CONVERSATION
do
|
request
|
request
.
add_arg
:agent_id
,
in: :body
,
required:
true
request
.
add_arg
:userid_list
,
in: :body
request
.
add_arg
:dept_id_list
,
in: :body
...
...
@@ -19,7 +19,7 @@ module Dingtalk
# 查询工作通知消息的发送进度
# {https://ding-doc.dingtalk.com/doc#/serverapi2/pgoxpy/e2262dad}
add_request
:get_corp_conversation_progress
,
:post
,
CORP_CONVERSATION_SEND_PROGRESS
do
|
request
|
add_request
:get_corp_conversation_progress
,
:post
,
Dingtalk
::
RequestUrl
::
CORP_CONVERSATION_SEND_PROGRESS
do
|
request
|
request
.
add_arg
:agent_id
,
in: :body
,
required:
true
request
.
add_arg
:task_id
,
in: :body
,
required:
true
...
...
@@ -28,7 +28,7 @@ module Dingtalk
# 查询工作通知消息的发送结果
# {https://ding-doc.dingtalk.com/doc#/serverapi2/pgoxpy/a5920210}
add_request
:get_corp_conversation_result
,
:post
,
CORP_CONVERSATION_SEND_RESULT
do
|
request
|
add_request
:get_corp_conversation_result
,
:post
,
Dingtalk
::
RequestUrl
::
CORP_CONVERSATION_SEND_RESULT
do
|
request
|
request
.
add_arg
:agent_id
,
in: :body
,
required:
true
request
.
add_arg
:task_id
,
in: :body
,
required:
true
...
...
@@ -37,7 +37,7 @@ module Dingtalk
# 工作通知消息撤回
# {https://ding-doc.dingtalk.com/doc#/serverapi2/pgoxpy/hYyV8}
add_request
:recall_corp_conversation
,
:post
,
RECALL_CORP_CONVERSATION
do
|
request
|
add_request
:recall_corp_conversation
,
:post
,
Dingtalk
::
RequestUrl
::
RECALL_CORP_CONVERSATION
do
|
request
|
request
.
add_arg
:agent_id
,
in: :body
,
required:
true
request
.
add_arg
:msg_task_id
,
in: :body
,
required:
true
...
...
lib/dingtalk/department.rb
View file @
858363cd
...
...
@@ -7,7 +7,7 @@ module Dingtalk
# 获取部门列表
# {https://ding-doc.dingtalk.com/doc#/serverapi2/dubakq/e6e1604e}
add_request
:get_department_list
,
:get
,
RequestUrl
::
GET_DEPARTMENT_LIST
do
|
request
|
add_request
:get_department_list
,
:get
,
Dingtalk
::
RequestUrl
::
GET_DEPARTMENT_LIST
do
|
request
|
request
.
add_arg
:id
,
in: :query
# 父部门id(如果不传,默认部门为根部门,根部门ID为1)
request
.
add_arg
:fetch_child
,
in: :query
# 是否递归部门的全部子部门
request
.
add_arg
:access_token
,
required:
true
,
in: :query
...
...
@@ -15,7 +15,7 @@ module Dingtalk
# 获取部门详情
# {https://ding-doc.dingtalk.com/doc#/serverapi2/dubakq/5bf960de}
add_request
:get_department_profile
,
:get
,
RequestUrl
::
GET_DEPARTMENT_PROFILE
do
|
request
|
add_request
:get_department_profile
,
:get
,
Dingtalk
::
RequestUrl
::
GET_DEPARTMENT_PROFILE
do
|
request
|
request
.
add_arg
:id
,
in: :query
,
required:
true
request
.
add_arg
:access_token
,
in: :query
,
required:
true
end
...
...
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