//
//  FileNetApi.h
//  AIIM
//
//  Created by gan on 2025/4/15.
//

#ifndef FileNetApi_h
#define FileNetApi_h


#endif /* FileNetApi_h */
#import "GBaseNetApi.h"

@interface FileNetApi : NSObject


//上传文件
+(void)upLoadWToken:(NSURL *_Nonnull)filePath succ:(GSucc _Nullable )succ fail:(GFail _Nullable )fail;

//上传文件
+(void)upLoadDataWToken:(NSData *_Nonnull)data fileName:(NSString *_Nullable)fileName succ:(GSucc _Nullable )succ fail:(GFail _Nullable )fail;

///上传文件（带上传进度）
+(void)uploadWithFilePath:(NSURL * _Nonnull)filePath thrid:(NSString *_Nullable)thrid progress:(FUploadProgress _Nullable)progress succ:(FSucc _Nullable )succ fail:(FFail _Nullable )fail;


///上传文件（带上传进度）
+(void)OSSuploadWithFilePath:(NSURL * _Nonnull)filePath thrid:(NSString *_Nullable)thrid progress:(FUploadProgress _Nullable)progress succ:(FSucc _Nullable )succ fail:(FFail _Nullable )fail;



///批量上传文件
+(void)uploadWithFilePaths:(NSArray <NSURL *>*_Nonnull)filePaths thrid:(NSString *_Nullable)thrid succ:(FSucc _Nullable )succ fail:(FFail _Nullable )fail;

//下载保存文件
+(void)downLoadWToken:(NSURL *_Nonnull)filePath thrid:(NSString *_Nullable)thrid succ:(GSucc _Nullable )succ fail:(GFail _Nullable )fail;
//取消上传
+(void)stopUploadTanck:(NSString *_Nullable)thrid;
@end
