// // WACustomerResult.h // WASdkIntf // // Created by lpw on 2025/7/15. // Copyright © 2025 GHW-T-01. All rights reserved. // 打开聚合客服中心回调结果 #import #import "WALoginResult.h" #import "WABindingResult.h" NS_ASSUME_NONNULL_BEGIN /// 客户中心回掉类型(对应不同业务场景) typedef NS_ENUM(NSUInteger, WACustomerOperationType) { WACustomerOperationTypeDeleteAccount, // 删除账号申请 WACustomerOperationTypeNewAccount, // 新建账户 WACustomerOperationTypeSwitchAccount, // 切换账户 WACustomerOperationTypeBindAccount // 绑定账号 }; @interface WACustomerResult : NSObject /// 操作类型(标记当前回调对应的业务) @property (nonatomic, assign) WACustomerOperationType operationType; /// 错误信息(非空表示操作失败) @property (nonatomic, strong) NSError *error; /// 账号删除状态(仅 operationType 为 DeleteAccount 时有效,对应旧接口的 status) @property (nonatomic, assign) NSUInteger deleteStatus; /// 登录结果(仅 operationType 为 NewAccount/SwitchAccount 时有效) @property (nonatomic, strong) WALoginResult *loginResult; /// 绑定结果(仅 operationType 为 BindAccount 时有效) @property (nonatomic, strong) WABindingResult *bindingResult; @end NS_ASSUME_NONNULL_END