30 lines
898 B
Objective-C
30 lines
898 B
Objective-C
//
|
|
// YMMineVisitorPresenter.m
|
|
// YUMI
|
|
//
|
|
// Created by YUMI on 2022/1/26.
|
|
//
|
|
|
|
#import "XPMineVisitorPresenter.h"
|
|
#import "Api+Mine.h"
|
|
#import "XPMineVisitorProtocol.h"
|
|
#import "AccountInfoStorage.h"
|
|
#import "XPMineVisitorItemModel.h"
|
|
|
|
@implementation XPMineVisitorPresenter
|
|
|
|
/// 访客列表
|
|
/// @param page 当前的页数
|
|
/// @param pageSize 一页多少个
|
|
- (void)getVisitorList:(int)page pageSize:(int)pageSize state:(int)state {
|
|
[Api getVisitorListCompletion:[self createHttpCompletion:^(BaseModel * _Nonnull data) {
|
|
NSArray *array = [UserInfoModel modelsWithArray:data.data];
|
|
[[self getView] onGetVisitorListSuccess:array state:state];
|
|
} fail:^(NSInteger code, NSString * _Nullable msg) {
|
|
[[self getView] getVisitorListFail:state];
|
|
}] pageNum:[NSString stringWithFormat:@"%d", page] pageSize:[NSString stringWithFormat:@"%d", pageSize]];
|
|
|
|
}
|
|
|
|
@end
|