Files
yinmeng-ios/xplan-ios/Main/Login/Presenter/LoginPresenter.m
2021-09-06 18:51:44 +08:00

27 lines
638 B
Objective-C

//
// LoginPresenter.m
// xplan-ios
//
// Created by zu on 2021/9/1.
//
#import "LoginPresenter.h"
#import "LoginProtocol.h"
#import "Api+Login.h"
@implementation LoginPresenter
- (id<LoginProtocol>)getView {
return ((id<LoginProtocol>) [super getView]);
}
- (void)phoneQuickLogin:(NSString *)accessToken token:(NSString *)token {
[Api phoneQuickLogin:[self createHttpCompletion:^(id _Nonnull data) {
[[self getView] phoneQuickLoginSuccess];
} fail:^(NSNumber * _Nonnull code, NSString * _Nullable msg) {
// todo fail
} showLoading:YES errorToast:YES] accessToken:accessToken token:token];
}
@end