//
//  MMLocalReportBManager.h
//  SkinMagnifier
//
//  Created by nana on 2020/12/7.
//

#import <Foundation/Foundation.h>
#import "SMLocalReportModel.h"

NS_ASSUME_NONNULL_BEGIN

@interface SMLocalReportBManager : NSObject
/// 单利
+ (instancetype)sharedManager ;

-(BOOL)addWithModel:(SMLocalReportModel *)model;
/// 更新, 如果model 的属性值 为 nil 表示不更新.
-(BOOL)updateWithModel:(SMLocalReportModel *)model cgid:(NSString *)cgid;
/// 删除
-(BOOL)deleteWitCgid:(NSString *)cgid;
/// 根据Cid 查询数据
-(NSMutableArray *)selectWithCid:(NSString *)cid  from:(NSInteger )from;
/// 根据Cgid 查询数据
-(NSMutableArray *)selectWithCgid:(NSString *)cgid;
/// 根据Cid 查询数据
-(NSMutableArray *)selectFristWithMid:(NSString *)Mid;
-(BOOL)updateWithSetKey:(NSString *)setKey  setValue:(NSString *)setValue whereKey:(NSString *)whereKey whereValue:(NSString *)whereValue;
@end

NS_ASSUME_NONNULL_END
