Commit 858363cd by Francis Zhou

fix const namespaec issue

parent 0330129a
...@@ -7,7 +7,7 @@ module Dingtalk ...@@ -7,7 +7,7 @@ module Dingtalk
# 发送工作通知消息 # 发送工作通知消息
# {https://ding-doc.dingtalk.com/doc#/serverapi2/pgoxpy} # {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 :agent_id, in: :body, required: true
request.add_arg :userid_list, in: :body request.add_arg :userid_list, in: :body
request.add_arg :dept_id_list, in: :body request.add_arg :dept_id_list, in: :body
...@@ -19,7 +19,7 @@ module Dingtalk ...@@ -19,7 +19,7 @@ module Dingtalk
# 查询工作通知消息的发送进度 # 查询工作通知消息的发送进度
# {https://ding-doc.dingtalk.com/doc#/serverapi2/pgoxpy/e2262dad} # {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 :agent_id, in: :body, required: true
request.add_arg :task_id, in: :body, required: true request.add_arg :task_id, in: :body, required: true
...@@ -28,7 +28,7 @@ module Dingtalk ...@@ -28,7 +28,7 @@ module Dingtalk
# 查询工作通知消息的发送结果 # 查询工作通知消息的发送结果
# {https://ding-doc.dingtalk.com/doc#/serverapi2/pgoxpy/a5920210} # {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 :agent_id, in: :body, required: true
request.add_arg :task_id, in: :body, required: true request.add_arg :task_id, in: :body, required: true
...@@ -37,7 +37,7 @@ module Dingtalk ...@@ -37,7 +37,7 @@ module Dingtalk
# 工作通知消息撤回 # 工作通知消息撤回
# {https://ding-doc.dingtalk.com/doc#/serverapi2/pgoxpy/hYyV8} # {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 :agent_id, in: :body, required: true
request.add_arg :msg_task_id, in: :body, required: true request.add_arg :msg_task_id, in: :body, required: true
......
...@@ -7,7 +7,7 @@ module Dingtalk ...@@ -7,7 +7,7 @@ module Dingtalk
# 获取部门列表 # 获取部门列表
# {https://ding-doc.dingtalk.com/doc#/serverapi2/dubakq/e6e1604e} # {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 :id, in: :query # 父部门id(如果不传,默认部门为根部门,根部门ID为1)
request.add_arg :fetch_child, in: :query # 是否递归部门的全部子部门 request.add_arg :fetch_child, in: :query # 是否递归部门的全部子部门
request.add_arg :access_token, required: true, in: :query request.add_arg :access_token, required: true, in: :query
...@@ -15,7 +15,7 @@ module Dingtalk ...@@ -15,7 +15,7 @@ module Dingtalk
# 获取部门详情 # 获取部门详情
# {https://ding-doc.dingtalk.com/doc#/serverapi2/dubakq/5bf960de} # {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 :id, in: :query, required: true
request.add_arg :access_token, in: :query, required: true request.add_arg :access_token, in: :query, required: true
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment