
主要变更: 1. 新增 EPImageUploader.swift 和 EPProgressHUD.swift,提供图片批量上传和进度显示功能。 2. 新建 EPMomentAPISwiftHelper.swift,封装动态 API 的 Swift 版本。 3. 更新 EPMomentPublishViewController,集成新上传功能并实现发布成功通知。 4. 创建多个文档,包括实施报告、检查清单和快速使用指南,详细记录功能实现和使用方法。 5. 更新 Bridging Header,确保 Swift 和 Objective-C 代码的互操作性。 此功能旨在提升用户体验,简化动态发布流程,并提供清晰的文档支持。
36 lines
855 B
Objective-C
36 lines
855 B
Objective-C
//
|
|
// EPMomentAPIHelper.h
|
|
// YuMi
|
|
//
|
|
// Created by AI on 2025-10-10.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
#import "BaseMvpPresenter.h"
|
|
#import "MomentsInfoModel.h"
|
|
#import "MomentsListInfoModel.h"
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
/// 推荐/我的动态列表数据源类型
|
|
typedef NS_ENUM(NSInteger, EPMomentListSourceType) {
|
|
EPMomentListSourceTypeRecommend = 0,
|
|
EPMomentListSourceTypeMine = 1
|
|
};
|
|
|
|
/// 统一封装 Moments 列表 API
|
|
@interface EPMomentAPIHelper : BaseMvpPresenter
|
|
|
|
/// 拉取最新动态列表(默认 types:"0,2" 图片+文字)
|
|
- (void)fetchLatestMomentsWithNextID:(NSString *)nextID
|
|
completion:(void (^)(NSArray <MomentsInfoModel *>* _Nullable list, NSString *nextMomentID))completion
|
|
failure:(void(^)(NSInteger code, NSString * _Nullable msg))failure;
|
|
|
|
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|
|
|
|
|