解析數據時,當value和系統的命名同樣時,當解析爲數組時

+ (NSDictionary *)mj_objectClassInArray
{
    return @{
             @"stepList":[QHMoneyBossStepListModel class]
             
             };
}
+ (NSDictionary *)mj_replacedKeyFromPropertyName {
    
    return @{
             @"DepositId":@"id"
             };
}
- (id)requestArgument {
    NSMutableDictionary *argument = [NSMutableDictionary dictionaryWithCapacity:1];
    
    [argument setValue:[NSNumber numberWithInteger:_page] forKey:@"page"];
    [argument setValue:[NSNumber numberWithInteger:_pagesize] forKey:@"pagesize"];
    
    return argument;
}
相關文章
相關標籤/搜索