//
//  FGDBHelper.h
//  MobilePortal
//
//  Created by xiejiangbo on 2019/3/13.
//  Copyright © 2019 yin chen. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "HomeHttpInfoModel.h"
#import "SelecCompanyDepartmentInfo.h"
@interface FGDBHelper : NSObject
+(instancetype)sharedInstance;
// 首页数据存储
-(void)saveHomeHttpInfoModel:(HomeHttpInfoModel *)selecHomeHttpInfoModel callBack:(void (^)(BOOL))block;
-(void)updateHomeHttpInfoModel:(HomeHttpInfoModel *)selecHomeHttpInfoModel callBack:(void (^)(BOOL))block;
-(BOOL)hasHomeHttpInfoModel;
-(NSMutableArray *)allHomeHttpInfoModel;
//公司部门
-(void)saveCompanyDepartmentInfo:(SelecCompanyDepartmentInfo *)selecCompanyDepartmentInfo callBack:(void (^)(BOOL))block;
-(NSMutableArray *)queryCompanyDepartmentInfo:(NSString *)companyType andUserId:(NSString *)userid;
-(NSMutableArray *)allCompanyDepartmentInfo:(NSString *)userId;
-(void)updateCompanyDepartmentInfo:(SelecCompanyDepartmentInfo *)selecCompanyDepartmentInfo callBack:(void (^)(BOOL))block;
-(BOOL)hasCompanyDepartmentInfo:(NSString *)userId andTages:(NSString *)tags;
-(void)deleteAllCompanyDepartmentInfo:(NSString *)userId callBack:(void (^)(BOOL))block;
@end
