28 lines
921 B
Mathematica
28 lines
921 B
Mathematica
![]() |
//
|
||
|
// YMMineFansTeamPresenter.m
|
||
|
// YUMI
|
||
|
//
|
||
|
// Created by YUMI on 2022/4/8.
|
||
|
//
|
||
|
|
||
|
#import "XPMineFansTeamPresenter.h"
|
||
|
#import "Api+Mine.h"
|
||
|
#import "XPMineAnchorFansTeamProtocol.h"
|
||
|
#import "XPMineAnchorFansTeamModel.h"
|
||
|
|
||
|
@implementation XPMineFansTeamPresenter
|
||
|
|
||
|
/// 获取粉丝团列表
|
||
|
/// @param page 当前的页数
|
||
|
/// @param pageSize 一页多少个
|
||
|
- (void)getAnchorFansTeamList:(int)page pageSize:(int)pageSize state:(int)state {
|
||
|
[Api getAnchorFansTeamListCompletion:[self createHttpCompletion:^(BaseModel * _Nonnull data) {
|
||
|
NSArray *array = [XPMineAnchorFansTeamModel modelsWithArray:data.data];
|
||
|
[[self getView] getAnchorFansTeamListSuccess:array state:state];
|
||
|
} fail:^(NSInteger code, NSString * _Nullable msg) {
|
||
|
[[self getView] getAnchorFansTeamListFail:state];
|
||
|
}] pageNum:[NSString stringWithFormat:@"%d", page] pageSize:[NSString stringWithFormat:@"%d", pageSize]];
|
||
|
}
|
||
|
|
||
|
@end
|