30 lines
915 B
Mathematica
30 lines
915 B
Mathematica
![]() |
//
|
||
|
// XPMonentsRecommendPresenter.m
|
||
|
// xplan-ios
|
||
|
//
|
||
|
// Created by 冯硕 on 2022/5/13.
|
||
|
//
|
||
|
|
||
|
#import "XPMonentsRecommendPresenter.h"
|
||
|
#import "Api+Monents.h"
|
||
|
#import "MonentsInfoModel.h"
|
||
|
#import "XPMonentsRecommendProtocol.h"
|
||
|
@implementation XPMonentsRecommendPresenter
|
||
|
|
||
|
|
||
|
/// 获取朋友圈动态推荐列表
|
||
|
/// @param page 当前的页数
|
||
|
/// @param pageSize 一页的个数
|
||
|
/// @param state 状态
|
||
|
- (void)getMonentsRecommendList:(NSInteger)page pageSize:(NSInteger)pageSize state:(int)state {
|
||
|
NSString * pageStr = [NSString stringWithFormat:@"%ld", page];
|
||
|
NSString * pageSizeStr = [NSString stringWithFormat:@"%ld", pageSize];
|
||
|
[Api monentsRecommendList:[self createHttpCompletion:^(BaseModel * _Nonnull data) {
|
||
|
NSArray *array = [MonentsInfoModel modelsWithArray:data.data];
|
||
|
[[self getView] getMonentsRecommendListSuccess:array state:state];
|
||
|
}] page:pageStr pageSize:pageSizeStr types:@"0,2"];
|
||
|
}
|
||
|
|
||
|
|
||
|
@end
|