mirror of
https://github.com/WuKongIM/WuKongIMiOSSDK-Framework
synced 2025-06-01 05:57:40 +00:00
40 lines
597 B
Objective-C
40 lines
597 B
Objective-C
//
|
|
// WKDB.h
|
|
// WuKongIMSDK
|
|
//
|
|
// Created by tt on 2019/11/27.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
#import <fmdb/FMDB.h>
|
|
#import "WKFMDatabaseQueue.h"
|
|
//消息表
|
|
#define TB_MESSAGE @"message"
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@interface WKDB : NSObject
|
|
|
|
@property (nonatomic, strong) WKFMDatabaseQueue *dbQueue;
|
|
|
|
+ (WKDB *)sharedDB;
|
|
|
|
/**
|
|
切换用户的数据库
|
|
|
|
@param uid 用户uid
|
|
*/
|
|
-(void) switchDB:(NSString*)uid;
|
|
|
|
/**
|
|
是否需要切换数据库
|
|
|
|
@param uid <#uid description#>
|
|
@return <#return value description#>
|
|
*/
|
|
-(BOOL) needSwitchDB:(NSString*)uid;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|