//
//  addressGatherModel.h
//  Open
//
//  Created by 看看智能 on 2018/1/18.
//  Copyright © 2018年 黄江涛 . All rights reserved.
//

#import <Foundation/Foundation.h>
typedef void(^AddressChooseHandle)(NSString *str1,NSString *str2,NSError *error);


@interface addressGatherModel : NSObject
//第三方导航的地区选择器
@property(nonatomic,strong)HXProvincialCitiesCountiesPickerview *regionPickerView;

@property (nonatomic, copy)NSString *stringChoose;


-(instancetype)initWithViewController:(UIViewController *)vc;
//获取更多
-(void)getProvinceHandle:(AddressChooseHandle)completionHandle;
- (void)getDownTown:(NSString*)str Handle:(AddressChooseHandle)completionHandle;
- (void)getArea:(NSString*)str Handle:(AddressChooseHandle)completionHandle;
-(void)getVillage:(NSString*)str Handle:(AddressChooseHandle)completionHandle;
-(void)getVillageCommitee:(NSString*)str Handle:(AddressChooseHandle)completionHandle;

//获取单选的选项
-(void)onlySelect:(NSArray *)arr Handle:(AddressChooseHandle)completionHandle;
//带有返回值的block写法

-(NSString * (^)(NSString*))onlySelect_2:(NSArray *)arr Handle:(AddressChooseHandle)completionHandle;
- (void)getBigCode:(NSString *)smallCode Handle:(AddressChooseHandle)completionHandle;

//保存省名
@property(nonatomic,strong) NSMutableArray *dataArrName;

//保存id名字
@property(nonatomic,strong) NSMutableArray *dataArrID;

@property(nonatomic,strong)UIViewController *vc;







@end
