YMProvinceModel.m 673 B

1234567891011121314151617181920212223242526272829303132333435
  1. //
  2. // YMProvinceModel.m
  3. // MSYOUPAI
  4. //
  5. // Created by YoMi on 2024/3/12.
  6. // Copyright © 2024 MS. All rights reserved.
  7. //
  8. #import "YMProvinceModel.h"
  9. @implementation YMProvinceModel
  10. + (NSDictionary *)modelCustomPropertyMapper {
  11. return @{
  12. @"provinceId":@"id",
  13. @"provinceName":@"name",
  14. @"cityArr":@"child",
  15. };
  16. }
  17. + (NSDictionary *)modelContainerPropertyGenericClass {
  18. return @{
  19. @"cityArr":[YMCityModel class]
  20. };
  21. }
  22. @end
  23. @implementation YMCityModel
  24. + (NSDictionary *)modelCustomPropertyMapper {
  25. return @{
  26. @"provinceId":@"parent_id",
  27. @"cityId":@"id",
  28. @"cityName":@"name",
  29. };
  30. }
  31. @end