23 lines
547 B
Mathematica
23 lines
547 B
Mathematica
![]() |
//
|
||
|
// XPHomeSearchPresenter.m
|
||
|
// xplan-ios
|
||
|
//
|
||
|
// Created by 冯硕 on 2021/11/29.
|
||
|
//
|
||
|
|
||
|
#import "XPHomeSearchPresenter.h"
|
||
|
#import "Api+Home.h"
|
||
|
#import "XPHomeSearchProtocol.h"
|
||
|
#import "HomeSearchResultModel.h"
|
||
|
|
||
|
@implementation XPHomeSearchPresenter
|
||
|
|
||
|
- (void)searchRoomList:(NSString *)key {
|
||
|
[Api searchComplection:[self createHttpCompletion:^(BaseModel * _Nonnull data) {
|
||
|
NSArray * array = [HomeSearchResultModel modelsWithArray:data.data];
|
||
|
[[self getView] searchRoomSuccess:array];
|
||
|
}] key:key type:@"1" page:@"1" pageSize:@"50"];
|
||
|
}
|
||
|
|
||
|
@end
|