Files
yinmeng-ios/xplan-ios/Base/MVP/Model/UserInfoModel.m
2023-08-24 17:03:32 +08:00

35 lines
868 B
Objective-C

//
// UserInfoModel.m
// xplan-ios
//
// Created by zu on 2021/9/14.
//
#import "UserInfoModel.h"
@implementation UserInfoModel
+ (NSDictionary *)objectClassInArray {
return @{
@"privatePhoto":UserPhoto.class,
@"userGiftWall":UserGiftWallInfoModel.class,
@"userLuckyBagGiftWall":UserGiftWallInfoModel.class,
@"dynamicInfo":MonentsInfoModel.class,
@"userGamePartner":UserGameInfoVo.class
};
}
///如果一个模型中需要字段映射的话 比如id -> ID name -> other.name
+ (NSDictionary *)replacedKeyFromPropertyName {
return @{@"carEffect": @"carport.effect",
@"viewUrl": @"carport.viewUrl",
@"otherViewType": @"carport.otherViewType",
@"headwearEffect" : @"userHeadwear.effect",
@"headwearPic" : @"userHeadwear.pic",
@"carName": @"carport.name",
@"reviewingAvatar" : @"newAvatar"
};
}
@end