lpw
1 days ago bbf4d57fc99d4452ac7ab8c6a264bec6979c5035
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//
//  WACustomerResult.h
//  WASdkIntf
//
//  Created by lpw on 2025/7/15.
//  Copyright © 2025 GHW-T-01. All rights reserved.
//  打开聚合客服中心回调结果
 
#import <Foundation/Foundation.h>
#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