class Rails::Ding::DepartmentService
Public Class Methods
createDept(accessToken, dept)
click to toggle source
# File lib/rails/ding/department_service.rb, line 5 def self.createDept(accessToken, dept) response = HttpService.post("/department/create?", {access_token: accessToken}, dept.to_json) return response end
deleteDept(accessToken, id)
click to toggle source
# File lib/rails/ding/department_service.rb, line 25 def self.deleteDept(accessToken, id) response = HttpService.get("/department/delete?",{access_token: accessToken, id: id}) return response end
department_info(accessToken)
click to toggle source
# File lib/rails/ding/department_service.rb, line 20 def self.department_info(accessToken) response = HttpService.get("/department/get?", {access_token: accessToken,id: 66950253}) return response end
listDept(accessToken)
click to toggle source
# File lib/rails/ding/department_service.rb, line 10 def self.listDept(accessToken) response = HttpService.get("/department/list?", {access_token: accessToken}) return response end
list_ids(accessToken)
click to toggle source
# File lib/rails/ding/department_service.rb, line 15 def self.list_ids(accessToken) response = HttpService.get("/department/list_ids?", {access_token: accessToken}) return response end