Sha256: 2933cdbc19d4585a19dc4e179faf1e21ebf9018a789deaf393fd5452edfde109

Contents?: true

Size: 910 Bytes

Versions: 4

Compression:

Stored size: 910 Bytes

Contents

module Wework
  module Api
    module Methods
      module User
        def user_create data={}
          post 'user/create', data
        end

        def user_get userid
          get 'user/get', params: {userid: userid}
        end

        def user_update userid, data={}
          post 'user/update', data.merge(userid: userid)
        end

        def user_delete userid
          get 'user/delete', params: {userid: userid}
        end

        def user_batchdelete useridlist=[]
          post 'user/batchdelete', {useridlist: useridlist}
        end

        def user_simplelist department_id, fetch_child=0
          get 'user/simplelist', params: {department_id: department_id, fetch_child: fetch_child}
        end

        def user_list department_id, fetch_child=0
          get 'user/list', params: {department_id: department_id, fetch_child: fetch_child}
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
wework-1.1.3 lib/wework/api/methods/user.rb
wework-1.1.2 lib/wework/api/methods/user.rb
wework-1.1.1 lib/wework/api/methods/user.rb
wework-1.1.0 lib/wework/api/methods/user.rb