JXUserPublicKeyObj.h 738 B

123456789101112131415161718192021222324252627282930313233
  1. //
  2. // JXUserPublicKeyObj.h
  3. // shiku_im
  4. //
  5. // Created by p on 2019/8/7.
  6. // Copyright © 2019 Reese. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. NS_ASSUME_NONNULL_BEGIN
  10. @interface JXUserPublicKeyObj : NSObject
  11. @property (nonatomic,copy) NSString *userId; // 好友userId
  12. @property (nonatomic,copy) NSString *publicKey; // 好友的公钥
  13. @property (nonatomic, strong) NSDate *keyCreateTime; // 公钥创建时间
  14. + (instancetype)sharedManager;
  15. //数据库增删改查
  16. -(BOOL)insert;
  17. -(BOOL)delete;
  18. // 获取好友的公钥列表
  19. - (NSMutableArray *)fetchPublicKeyWithUserId:(NSString *)userId;
  20. // 删除好友的公钥列表
  21. - (BOOL)deletePublicKeyWIthUserId:(NSString *)userId;
  22. @end
  23. NS_ASSUME_NONNULL_END