// // ASAddressViewModel.m // Asteria // // Created by iOS on 2024/5/7. // #import "ASAddressViewModel.h" @implementation ASAddressViewModel - (void)upAddress:(ASAddressModel *)addressModel complate:(void(^)(BOOL,NSString *))complate { complate(true, @""); } - (void)deleteAnAddress:(ASAddressModel *)addressModel complate:(void(^)(BOOL))complate { complate(true); } - (void)getCountryList:(void(^)(void))success { success(); } - (void)getProvinceList:(NSString *)country_id success:(void(^)(void))success { success(); } - (NSArray *)countryNameList { NSMutableArray *arr = [NSMutableArray array]; for (KWCountryAddressModel* item in self.countryArr) { [arr addObject:item.name]; } return arr; } - (NSArray *)provinceNameList { NSMutableArray *arr = [NSMutableArray array]; for (KWProvinceAddressModel* item in self.provinceArr) { [arr addObject:item.name]; } return arr; } @end