feat: 添加 EPMomentAPIHelper_Deprecated 以支持旧版 API

主要变更:
1. 新增 EPMomentAPIHelper_Deprecated.h 和 EPMomentAPIHelper_Deprecated.m 文件,提供与旧版 Objective-C API 的兼容性。
2. 该文件已被 EPMomentAPISwiftHelper.swift 替代,保留仅供参考,后续可删除。
3. 更新 EPMomentListView 以使用新的 Swift 版本 API,提升代码的现代化和类型安全。

此更新旨在确保旧版 API 的平滑过渡,同时鼓励使用新的 Swift 实现。
This commit is contained in:
edwinQQQ
2025-10-11 18:43:25 +08:00
parent c0441f7853
commit e318aaeee4
6 changed files with 70 additions and 15 deletions

View File

@@ -6,12 +6,18 @@
//
#import <UIKit/UIKit.h>
#import "EPMomentAPIHelper.h"
NS_ASSUME_NONNULL_BEGIN
@class EPMomentAPISwiftHelper;
@class MomentsInfoModel;
/// 推荐/我的动态列表数据源类型
typedef NS_ENUM(NSInteger, EPMomentListSourceType) {
EPMomentListSourceTypeRecommend = 0,
EPMomentListSourceTypeMine = 1
};
/// 承载 Moments 列表与分页刷新的视图
@interface EPMomentListView : UIView