feat: 添加 EPMomentPublishViewController 以支持图文发布功能

主要变更:
1. 新增 EPMomentPublishViewController.h 和 EPMomentPublishViewController.m 文件,提供图文发布页面的 UI 和逻辑。
2. 实现了发布按钮、文本输入框、图片选择功能,支持最多选择 9 张图片。
3. 集成了 TZImagePickerController 以便于用户选择图片。
4. 更新了 EPMomentViewController,添加了跳转到发布页面的逻辑。

此功能旨在提升用户体验,简化图文发布流程。
This commit is contained in:
edwinQQQ
2025-10-10 19:06:06 +08:00
parent e8d59495a4
commit ceaeb5c951
8 changed files with 403 additions and 85 deletions

View File

@@ -21,13 +21,10 @@ typedef NS_ENUM(NSInteger, EPMomentListSourceType) {
/// 统一封装 Moments 列表 API
@interface EPMomentAPIHelper : BaseMvpPresenter
/// 拉取动态列表(默认 types:"0,2" 图片+文字)
/// page 从 0 开始pageSize > 0
/// completion 返回 data 数组(字典数组) 或错误
- (void)fetchMomentsWithType:(EPMomentListSourceType)sourceType
page:(NSInteger)page
pageSize:(NSInteger)pageSize
completion:(void (^)(NSArray <MomentsInfoModel *>* _Nullable list, NSInteger code, NSString * _Nullable msg))completion;
/// 拉取最新动态列表(默认 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