61 lines
1.9 KiB
Objective-C
61 lines
1.9 KiB
Objective-C
//
|
||
// LoginPresenter.h
|
||
// YUMI
|
||
//
|
||
// Created by zu on 2021/9/1.
|
||
//
|
||
|
||
#import "BaseMvpPresenter.h"
|
||
#import "YUMINNNN.h"
|
||
#import <GoogleSignIn/GoogleSignIn.h>
|
||
#import <GoogleSignIn/GIDGoogleUser.h>
|
||
#import <GoogleSignIn/GoogleSignIn-umbrella.h>
|
||
|
||
@class FeedBackConfigModel;
|
||
|
||
NS_ASSUME_NONNULL_BEGIN
|
||
|
||
@interface LoginPresenter : BaseMvpPresenter
|
||
|
||
- (void)phoneQuickLogin:(NSString *)accessToken token:(NSString*) token;
|
||
|
||
|
||
/// 第三方登录
|
||
/// @param type 登录的类型
|
||
- (void)thirdLoginWithType:(ThirdLoginType)type;
|
||
|
||
///第三方登录,谷歌登录
|
||
-(void)thirdLoginByGoogleWithPresentingViewController:(UIViewController *)presentingViewController configuration:(GIDConfiguration *)configuration;
|
||
///第三方登录,fb登录
|
||
-(void)thirdLoginByFBWithPresentingViewController:(UIViewController *)presentingViewController;
|
||
///第三方登录,line登录
|
||
-(void)thirdLoginByLine:(UIViewController *)presentingViewController;
|
||
|
||
/// 获取手机的验证码
|
||
/// @param phone 手机号
|
||
/// @param type 类型
|
||
- (void)phoneSmsCode:(NSString *)phone type:(GetSmsType)type phoneAreaCode:(NSString *)phoneAreaCode;
|
||
|
||
/// 使用手机号和验证码登录
|
||
/// @param phone 手机号
|
||
/// @param code 验证码
|
||
- (void)loginWithPhone:(NSString *)phone code:(NSString *)code phoneAreaCode:(NSString *)phoneAreaCode;
|
||
/// 使用手机号和密码登录
|
||
/// @param phone 手机号
|
||
/// @param password 验证码
|
||
- (void)loginWithPhone:(NSString *)phone password:(NSString *)password;
|
||
|
||
///反馈
|
||
- (void)loadFeedbackConfig:(void(^)(FeedBackConfigModel *model))success
|
||
failure:(void(^)(NSString *errorMessage))failure;
|
||
- (void)submitFeedback:(void(^)(void))success
|
||
failure:(void(^)(NSString *errorMessage))failure
|
||
type:(NSString *)type
|
||
desc:(NSString *)desc
|
||
photoURLString:(nullable NSString *)photoURLString
|
||
contact:(nullable NSString *)contact;
|
||
|
||
@end
|
||
|
||
NS_ASSUME_NONNULL_END
|