WFCUOrgServiceProvider.h 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. //
  2. // WFCUAppService.h
  3. // WFChatUIKit
  4. //
  5. // Created by Heavyrain Lee on 2019/10/22.
  6. // Copyright © 2019 WildFireChat. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. NS_ASSUME_NONNULL_BEGIN
  10. @class WFCUOrganization;
  11. @class WFCUEmployee;
  12. @class WFCUOrgRelationship;
  13. @class WFCUOrganizationEx;
  14. @class WFCUEmployeeEx;
  15. @protocol WFCUOrgServiceProvider <NSObject>
  16. - (void)getRelationship:(NSString *)employeeId
  17. success:(void(^)(NSArray<WFCUOrgRelationship *> *))successBlock
  18. error:(void(^)(int error_code))errorBlock;
  19. - (void)getRootOrganization:(void(^)(NSArray<WFCUOrganization *> *))successBlock
  20. error:(void(^)(int error_code))errorBlock;
  21. - (void)getOrganizationEx:(NSInteger)organizationId
  22. success:(void(^)(WFCUOrganizationEx *path))successBlock
  23. error:(void(^)(int error_code))errorBlock;
  24. - (void)getOrganizations:(NSArray<NSNumber *> *)organizationIds
  25. success:(void(^)(NSArray<WFCUOrganization *> *organizations))successBlock
  26. error:(void(^)(int error_code))errorBlock;
  27. - (void)getBatchOrgEmployees:(NSArray<NSNumber *> *)orgIds
  28. success:(void(^)(NSArray<NSString *> *employeeIds))successBlock
  29. error:(void(^)(int error_code))errorBlock;
  30. - (void)getOrgEmployees:(NSInteger)orgId
  31. success:(void(^)(NSArray<NSString *> *employeeIds))successBlock
  32. error:(void(^)(int error_code))errorBlock;
  33. - (void)getEmployee:(NSString *)employeeId
  34. success:(void(^)(WFCUEmployee *employee))successBlock
  35. error:(void(^)(int error_code))errorBlock;
  36. - (void)getEmployeeEx:(NSString *)employeeId
  37. success:(void(^)(WFCUEmployeeEx *employeeEx))successBlock
  38. error:(void(^)(int error_code))errorBlock;
  39. - (void)searchEmployee:(NSInteger)organizationId
  40. keyword:(NSString *)keyword
  41. success:(void(^)(NSArray<WFCUEmployee *> *employees))successBlock
  42. error:(void(^)(int error_code))errorBlock;
  43. @end
  44. NS_ASSUME_NONNULL_END