lastFileManager.h 859 B

1234567891011121314151617181920212223242526272829303132
  1. //
  2. // lastFileManager.h
  3. // 双子星云手机
  4. //
  5. // Created by xd h on 2024/6/19.
  6. //
  7. #import <Foundation/Foundation.h>
  8. #import "lastFileModel.h"
  9. NS_ASSUME_NONNULL_BEGIN
  10. #define KLastFileDirector @"lastFile"
  11. @interface lastFileManager : NSObject
  12. @property(nonatomic,copy) NSString *uid;//用户id 用来创建文件夹路径 防止不要用户的缓存关联
  13. @property(nonatomic,assign) NSInteger saveDays;//默认90天
  14. @property (nonatomic, strong) NSMutableDictionary * _Nullable lastFileList;
  15. @property (nonatomic, strong) NSMutableArray * _Nullable lastFileListArr;
  16. /** 实例化对象(单例) */
  17. + (instancetype)shareManager;
  18. /** 增加配置信息 */
  19. - (BOOL)saveFileInfoWith:(lastFileModel *)lastFileMod with:(NSString*)fullPath;
  20. /** 删除配置信息 */
  21. - (BOOL)deleteFileInfoWithUrl:(NSString *)fullPath;
  22. @end
  23. NS_ASSUME_NONNULL_END