Files
yinmeng-ios/xplan-ios/Main/Message/View/FindNew/Api/Api+FindNew.m
2022-06-13 14:26:42 +08:00

36 lines
1.1 KiB
Objective-C

//
// Api+FindNew.m
// xplan-ios
//
// Created by 冯硕 on 2022/6/10.
//
#import "Api+FindNew.h"
@implementation Api (FindNew)
///发现萌新
+ (void)findNewUser:(HttpRequestHelperCompletion)completion {
NSDictionary * dic = @{@"page":@"1", @"pageSize":@"20"};
[HttpRequestHelper request:@"newbie/poolList" method:HttpRequestHelperMethodGET params:dic completion:completion];
}
/// 打招呼用语列表
/// @param completion 完成
/// @param start 开始
/// @param pageSize 一页多少个
+ (void)findNewGreetMessageList:(HttpRequestHelperCompletion)completion start:(NSString *)start pageSize:(NSString *)pageSize {
[self makeRequest:@"newbie/messageList" method:HttpRequestHelperMethodGET completion:completion,__FUNCTION__, start, pageSize, nil];
}
/// 打招呼
/// @param completion 完成
/// @param helloUid 打招呼的uid
/// @param message 打招呼的消息
+ (void)findNewUserGreet:(HttpRequestHelperCompletion)completion helloUid:(NSString *)helloUid message:(NSString *)message {
[self makeRequest:@"newbie/hello" method:HttpRequestHelperMethodPOST completion:completion,__FUNCTION__, helloUid, message, nil];
}
@end