45 lines
1.4 KiB
Objective-C
45 lines
1.4 KiB
Objective-C
//
|
|
// XPInRoomRecordPresenter.m
|
|
// xplan-ios
|
|
//
|
|
// Created by GreenLand on 2022/9/6.
|
|
//
|
|
|
|
#import "XPInRoomRecordPresenter.h"
|
|
#import "Api+Mine.h"
|
|
#import "AccountInfoStorage.h"
|
|
#import "XPMineFootPrintModel.h"
|
|
#import "HomeEveryOneSearchModel.h"
|
|
#import "XPInRoomRecordProtocol.h"
|
|
|
|
@implementation XPInRoomRecordPresenter
|
|
|
|
///获取进房记录
|
|
- (void)getInRoomRecordList {
|
|
NSString *uid = [AccountInfoStorage instance].getUid;
|
|
[Api requestFootPrint:[self createHttpCompletion:^(BaseModel * _Nonnull data) {
|
|
NSArray *array = [XPMineFootPrintModel modelsWithArray:data.data];
|
|
[[self getView] getInRoomRecordSuccess:array];
|
|
} fail:^(NSInteger code, NSString * _Nullable msg) {
|
|
}] uid:uid page:@"1" pageSize:@"100"];
|
|
}
|
|
|
|
/// 清除进房记录
|
|
- (void)cleanInRoomRecord {
|
|
NSString *uid = [AccountInfoStorage instance].getUid;
|
|
[Api requestCleanFootPrint:[self createHttpCompletion:^(BaseModel * _Nonnull data) {
|
|
[[self getView] cleanInRoomRecordSuccess];
|
|
}] uid:uid roomUid:NULL];
|
|
}
|
|
|
|
///大家都在搜
|
|
- (void)getEveryoneSearchList {
|
|
NSString *uid = [AccountInfoStorage instance].getUid;
|
|
[Api requestEveryoneSearch:[self createHttpCompletion:^(BaseModel * _Nonnull data) {
|
|
NSArray *array = [HomeEveryOneSearchModel modelsWithArray:data.data];
|
|
[[self getView] getEveryoneSearchListSuccess:array];
|
|
}] uid:uid];
|
|
}
|
|
|
|
@end
|