Files
peko-ios/YuMi/Modules/YMLogin/Presenter/LoginPresenter.h

63 lines
2.1 KiB
C
Raw Normal View History

2023-07-14 18:50:55 +08:00
//
// LoginPresenter.h
// YUMI
//
// Created by zu on 2021/9/1.
//
#import "BaseMvpPresenter.h"
#import "YUMINNNN.h"
#import <GoogleSignIn/GoogleSignIn.h>
#import <GoogleSignIn/GIDGoogleUser.h>
2023-09-22 20:23:33 +08:00
#import <GoogleSignIn/GoogleSignIn-umbrella.h>
2024-07-03 21:22:40 +08:00
@class FeedBackConfigModel;
2023-07-14 18:50:55 +08:00
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;
2023-08-11 14:46:56 +08:00
///第三方登录fb登录
-(void)thirdLoginByFBWithPresentingViewController:(UIViewController *)presentingViewController;
2023-12-29 16:43:37 +08:00
///第三方登录line登录
-(void)thirdLoginByLine:(UIViewController *)presentingViewController;
2024-04-11 15:47:44 +08:00
/// 获取手机的验证码
/// @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;
2024-07-03 21:22:40 +08:00
///反馈
- (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;
2025-03-14 19:43:04 +08:00
- (void)sendMailVerificationCode:(NSString *)emailAddress type:(NSInteger)type;
- (void)loginWithEmail:(NSString *)email code:(NSString *)code;
2023-07-14 18:50:55 +08:00
@end
NS_ASSUME_NONNULL_END