// // WFCUAppService.h // WFChatUIKit // // Created by Heavyrain Lee on 2019/10/22. // Copyright © 2019 WildFireChat. All rights reserved. // #import NS_ASSUME_NONNULL_BEGIN @class WFCUOrganization; @class WFCUEmployee; @class WFCUOrgRelationship; @class WFCUOrganizationEx; @class WFCUEmployeeEx; @protocol WFCUOrgServiceProvider - (void)getRelationship:(NSString *)employeeId success:(void(^)(NSArray *))successBlock error:(void(^)(int error_code))errorBlock; - (void)getRootOrganization:(void(^)(NSArray *))successBlock error:(void(^)(int error_code))errorBlock; - (void)getOrganizationEx:(NSInteger)organizationId success:(void(^)(WFCUOrganizationEx *path))successBlock error:(void(^)(int error_code))errorBlock; - (void)getOrganizations:(NSArray *)organizationIds success:(void(^)(NSArray *organizations))successBlock error:(void(^)(int error_code))errorBlock; - (void)getBatchOrgEmployees:(NSArray *)orgIds success:(void(^)(NSArray *employeeIds))successBlock error:(void(^)(int error_code))errorBlock; - (void)getOrgEmployees:(NSInteger)orgId success:(void(^)(NSArray *employeeIds))successBlock error:(void(^)(int error_code))errorBlock; - (void)getEmployee:(NSString *)employeeId success:(void(^)(WFCUEmployee *employee))successBlock error:(void(^)(int error_code))errorBlock; - (void)getEmployeeEx:(NSString *)employeeId success:(void(^)(WFCUEmployeeEx *employeeEx))successBlock error:(void(^)(int error_code))errorBlock; - (void)searchEmployee:(NSInteger)organizationId keyword:(NSString *)keyword success:(void(^)(NSArray *employees))successBlock error:(void(^)(int error_code))errorBlock; @end NS_ASSUME_NONNULL_END