//
//  CYAddressSelectedView.h
//  Open
//
//  Created by 雷俊博 on 2019/10/8.
//  Copyright © 2019 黄江涛 . All rights reserved.
//

#import "BaseView.h"

NS_ASSUME_NONNULL_BEGIN

//地址选择完成之后的操作
typedef void(^CYAddressResultBlock)(NSDictionary *selectValue);

typedef void (^CYAddressResultBlock2)(NSString *selectValue);
typedef NS_ENUM(NSInteger,AddressType)
{
    AddressTypeProvince,
    AddressTypeCity,
    AddressTypeCounties,
    AddressTypeTown,
    AddressTypeVillage,
    AddressTypeNational,
    AddressTypeSex,
    AddressTypeAuthenticationType,
    AddressTypeAuthenticationResult
};

@interface CYAddressSelectedView : BaseView


+ (void)showAddressPickerWithTitle:(NSString *)title data:(NSArray *)data addressType:(AddressType)type resultBlock:(CYAddressResultBlock)resultBlock;

+ (void)show2AddressPickerWithTitle:(NSString *)title data:(NSArray *)data addressType:(AddressType)type resultBlock2:(CYAddressResultBlock2)resultBlock;

@end

NS_ASSUME_NONNULL_END
