MJExtension
+ (NSDictionary *)mj_replacedKeyFromPropertyName {
return @{@"ID": @"id"};
}
YYModel
//修改后台传过来的字段名
+ (NSDictionary *)modelCustomPropertyMapper {
return @{@"ID":@"id"};
}
MJExtension
+ (NSDictionary *)mj_replacedKeyFromPropertyName {
return @{@"ID": @"id"};
}
YYModel
//修改后台传过来的字段名
+ (NSDictionary *)modelCustomPropertyMapper {
return @{@"ID":@"id"};
}
本文标题:iOS 处理后台返回的"id"关键字
本文链接:https://www.haomeiwen.com/subject/gvxclltx.html
网友评论