12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- //
- // 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
|