新建了BaseObject 模型的基类 以及模型相互转换的方法

This commit is contained in:
fengshuo
2021-09-09 11:50:49 +08:00
parent 95f9d0067b
commit dddf7cb014
10 changed files with 113 additions and 17 deletions

View File

@@ -18,7 +18,7 @@
- (void)phoneQuickLogin:(NSString *)accessToken token:(NSString *)token {
[Api phoneQuickLogin:[self createHttpCompletion:^(BaseModel *data) {
[[AccountInfoStorage instance] saveAccountInfo:[AccountModel yy_modelWithDictionary:data.data]];
[[AccountInfoStorage instance] saveAccountInfo:[AccountModel modelWithDictionary:data.data]];
[[self getView] phoneQuickLoginSuccess];
} fail:^(NSInteger code, NSString * _Nullable msg) {
// todo fail