ASAddressViewModel.m 959 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. //
  2. // ASAddressViewModel.m
  3. // Asteria
  4. //
  5. // Created by iOS on 2024/5/7.
  6. //
  7. #import "ASAddressViewModel.h"
  8. @implementation ASAddressViewModel
  9. - (void)upAddress:(ASAddressModel *)addressModel complate:(void(^)(BOOL,NSString *))complate {
  10. complate(true, @"");
  11. }
  12. - (void)deleteAnAddress:(ASAddressModel *)addressModel complate:(void(^)(BOOL))complate {
  13. complate(true);
  14. }
  15. - (void)getCountryList:(void(^)(void))success {
  16. success();
  17. }
  18. - (void)getProvinceList:(NSString *)country_id success:(void(^)(void))success {
  19. success();
  20. }
  21. - (NSArray *)countryNameList {
  22. NSMutableArray *arr = [NSMutableArray array];
  23. for (KWCountryAddressModel* item in self.countryArr) {
  24. [arr addObject:item.name];
  25. }
  26. return arr;
  27. }
  28. - (NSArray *)provinceNameList {
  29. NSMutableArray *arr = [NSMutableArray array];
  30. for (KWProvinceAddressModel* item in self.provinceArr) {
  31. [arr addObject:item.name];
  32. }
  33. return arr;
  34. }
  35. @end