39 lines
897 B
Objective-C
39 lines
897 B
Objective-C
//
|
|
// GiGaUserManager.h
|
|
// GIGA
|
|
//
|
|
// Created by lianxiang on 2018/8/15.
|
|
// Copyright © 2018年 com.giga.ios. All rights reserved.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
#import "GiGaUser.h"
|
|
#import "MaskTestResult.h"
|
|
|
|
|
|
typedef void (^userDataresponseBlock)(GiGaUser *user);
|
|
typedef void (^userErrorMsgBlock)(NSDictionary *errorCodemsg);
|
|
|
|
@interface GiGaUserManager : NSObject
|
|
|
|
@property(nonatomic,strong) GiGaUser *user;
|
|
@property(nonatomic,strong) MaskTestResult *testReult;
|
|
|
|
+(instancetype)shareUser;
|
|
- (void)saveUser:(GiGaUser *)user;
|
|
- (GiGaUser*)getCurrentUser;
|
|
-(void)loginOut;
|
|
|
|
/**
|
|
版本升级检测
|
|
*/
|
|
//-(void)detectionUserUpgrade;
|
|
|
|
-(void)synsisUserInfo:(userDataresponseBlock)block userErrorMsgBlock:(userErrorMsgBlock)errorCodeMsg;
|
|
|
|
//保存肤质测试记录
|
|
//-(void)saveLatestUserTestRecord:(MaskTestResult *)maskTestResult;
|
|
//-(MaskTestResult *)latestMaskTestResult;
|
|
|
|
@end
|