32 lines
1022 B
Objective-C
32 lines
1022 B
Objective-C
//
|
|
// YMMineAttentionPresenter.m
|
|
// YUMI
|
|
//
|
|
// Created by YUMI on 2021/12/21.
|
|
//
|
|
|
|
#import "XPMineAttentionPresenter.h"
|
|
#import "Api+Mine.h"
|
|
#import "AccountInfoStorage.h"
|
|
#import "XPMineAttentionProtocol.h"
|
|
#import "FansInfoModel.h"
|
|
|
|
@implementation XPMineAttentionPresenter
|
|
|
|
/// 用户关注列表
|
|
/// @param page 当前的页数
|
|
/// @param pageSize 一页多少个
|
|
- (void)getUserAttentionList:(int)page pageSize:(int)pageSize state:(int)state;{
|
|
NSString * uid= [AccountInfoStorage instance].getUid;
|
|
NSString * pageStr = [NSString stringWithFormat:@"%d", page];
|
|
NSString * pageSizeStr = [NSString stringWithFormat:@"%d", pageSize];
|
|
[Api getattentionListCompletion:[self createHttpCompletion:^(BaseModel * _Nonnull data) {
|
|
NSArray * array = [FansInfoModel modelsWithArray:data.data];
|
|
[[self getView] getUserAttentionListSuccess:array state:state];
|
|
}fail:^(NSInteger code, NSString * _Nullable msg) {
|
|
[[self getView] getUserAttentionListFail:state];
|
|
}] uid:uid pageNo:pageStr pageSize:pageSizeStr];
|
|
}
|
|
|
|
@end
|