解决了语音上传到问题,接下来要解决下载播放问题

This commit is contained in:
joywayer
2025-06-15 12:36:47 +08:00
parent bba3ed1cb4
commit c11fc62bf1
513 changed files with 31197 additions and 2969 deletions

48
Pods/Qiniu/QiniuSDK/Utils/QNCache.h generated Normal file
View File

@@ -0,0 +1,48 @@
//
// QNCache.h
// QiniuSDK
//
// Created by yangsen on 2023/9/20.
// Copyright © 2023 Qiniu. All rights reserved.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@protocol QNCacheObject <NSObject>
- (nullable NSDictionary *)toDictionary;
- (nonnull id <QNCacheObject>)initWithDictionary:(nullable NSDictionary *)dictionary;
@end
@interface QNCacheOption : NSObject
// 当 cache 修改数量到达这个值时,就会 flush默认是 1
@property (nonatomic, assign) int flushCount;
// 缓存被持久化为一个文件,此文件的文件名为 versionversion 默认为v1.0.0
@property (nonatomic, copy) NSString *version;
@end
@interface QNCache : NSObject
+ (instancetype)cache:(Class)objectClass option:(QNCacheOption *)option;
- (id <QNCacheObject>)cacheForKey:(NSString *)cacheKey;
- (void)cache:(id<QNCacheObject>)object forKey:(NSString *)cacheKey atomically:(BOOL)atomically;
- (NSDictionary <NSString *, id <QNCacheObject>> *)allMemoryCache;
- (void)flush:(BOOL)atomically;
- (void)clearMemoryCache;
- (void)clearDiskCache;
@end
NS_ASSUME_NONNULL_END