// // uploadFileDataModel.m // 隐私保护 // // Created by xd h on 2023/11/15. // #import "uploadFileDataModel.h" @interface uploadFileDataModel () @end @implementation uploadFileDataModel /** 设置不需要存储的属性, 在模型.m文件中实现该函数. */ +(NSArray *)bg_ignoreKeys{ return @[@"imageData",@"videoData",@"asset",@"preTimeInterval",@"curTimeInterval"]; } - (id)copyWithZone:(NSZone *)zone { uploadFileDataModel *model = [[self class] allocWithZone:zone]; model.asset = self.asset; model.localIdentifier = self.localIdentifier; model.filename = self.filename; model.videoFirstImageName = self.videoFirstImageName; model.imageData = self.imageData; model.videoData = self.videoData; model.curUploadStateType = self.curUploadStateType; model.curUploadFileType = self.curUploadFileType; model.didUploadBytes = self.didUploadBytes; model.totalBytes = self.totalBytes; model.preTimeInterval = self.preTimeInterval; model.curTimeInterval = self.curTimeInterval; model.savePath = self.savePath; model.bg_id = self.bg_id; model.taskId = self.taskId; return model; } @end