//
//  ALFaceInfoViewModel.h
//  GMAlpha
//
//  Created by Mikasa on 2019/5/7.
//  Copyright © 2019 Gengmei. All rights reserved.
//
#import "ALFacePointsModel.h"
//#import "AppDelegate+ViewControl.h"
#import "ALFaceInfoModel.h"
//#import "GMScanAnimationController.h"


@interface ALFaceInfoViewModel : WMFetchDataViewModel

#pragma mark - JumpToOneImagePage


+ (void)uploadOneImageToQiNiu:(UIImage *)image vc:(UIViewController *)vc successBlock:(HttpSuccessBlock)successBlock;

//用于传图片到七牛
+ (void)uploadImageToQiNiu:(UIImage *)image successBlock:(HttpSuccessBlock)successBlock;

/**
 获取面部分析数据并进行跳转
 
 @param path OneImage图片地址
 */
+ (void)getFaceAnalysis:(NSString *)path vc:(UIViewController *)vc successBlock:(HttpSuccessBlock)successBlock;

// 弹出OneImage生成失败的弹框信息
+ (void)showAlertScanErrorView;

// 如果当前处于启动流程不进行弹框,直接切换首页
+ (BOOL)faceNextRootView;

#pragma mark - ALFaceInfoModel 数据获取 && 存储
/**
 保存面部faceID
 */
+ (void)saveFaceId:(NSString *)face_Id;
/**
 清理掉本地存储的faceID
 */
+ (void)clearFaceId;
/**
 查找本地存储的face_Id
 */
+ (NSString *)getLocalFaceId;

+ (ALFaceModel *)dealModelMethod:(ALFaceModel *)faceModel image:(UIImage *)image;
@end
