1234567891011121314151617181920212223242526272829303132333435 |
- //
- // YMProvinceModel.m
- // MSYOUPAI
- //
- // Created by YoMi on 2024/3/12.
- // Copyright © 2024 MS. All rights reserved.
- //
- #import "YMProvinceModel.h"
- @implementation YMProvinceModel
- + (NSDictionary *)modelCustomPropertyMapper {
- return @{
- @"provinceId":@"id",
- @"provinceName":@"name",
- @"cityArr":@"child",
- };
- }
- + (NSDictionary *)modelContainerPropertyGenericClass {
- return @{
- @"cityArr":[YMCityModel class]
- };
- }
- @end
- @implementation YMCityModel
- + (NSDictionary *)modelCustomPropertyMapper {
- return @{
- @"provinceId":@"parent_id",
- @"cityId":@"id",
- @"cityName":@"name",
- };
- }
- @end
|