Files
real-e-party-iOS/YuMi/Modules/YMMonents/Model/MomentsInfoModel.h
edwinQQQ f60a0eef14 feat: 更新 EPMomentCell 以支持图片点击查看和点赞功能
主要变更:
1. 引入 SDPhotoBrowser 类,支持点击图片查看大图功能。
2. 更新点赞逻辑,优化点赞状态和数量的显示,移除评论功能。
3. 调整 UI 组件约束,确保点赞按钮的显示效果。
4. 增加图片点击手势识别,提升用户交互体验。

此更新旨在增强动态展示的互动性,简化用户操作流程。
2025-10-14 19:01:49 +08:00

113 lines
3.4 KiB
Objective-C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//
// MonentsInfoModel.h
// xplan-ios
//
// Created by 冯硕 on 2022/5/11.
//
#import <Foundation/Foundation.h>
#import "UserVipInfoVo.h"
NS_ASSUME_NONNULL_BEGIN
typedef NS_ENUM(NSInteger, MonentsContentType) {
///纯文字的
MonentsContentType_Text = 0,
///图片
MomentsContentType_Picture = 2
};
@class MomentsPicInfoModel;
@interface MomentsInfoModel : PIBaseModel
///类型
@property (nonatomic,assign) MonentsContentType type;
///用户的uid
@property (nonatomic,copy) NSString *uid;
///昵称
@property (nonatomic,copy) NSString *nick;
///身份的类型
@property (nonatomic,assign) NSInteger defUser;
///是否是新用户
@property (nonatomic,assign) BOOL newUser;
///性别
@property (nonatomic,assign) GenderType gender;
///头像
@property (nonatomic,copy) NSString *avatar;
///年龄
@property (nonatomic,assign) int age;
///内容
@property (nonatomic,strong) NSString *content;
///喜欢的次数
@property (nonatomic,copy) NSString *likeCount;
///我是否已经点赞
@property (nonatomic, assign) BOOL isLike;
///评论的次数
@property (nonatomic,copy) NSString *commentCount;
//发布时间
@property (nonatomic,copy) NSString *publishTime;
///等级
@property (nonatomic,strong) NSString *expertLevelPic;
///魅力等级
@property (nonatomic,strong) NSString *charmLevelPic;
///广场是否置顶
@property (nonatomic,assign) BOOL squareTop;
///话题是否置顶
@property (nonatomic,assign) BOOL topicTop;
///VIP信息
@property (nonatomic, strong) UserVipInfoVo *userVipInfoVO;
///发布的内容
@property (nonatomic,copy) NSArray<MomentsPicInfoModel *> *dynamicResList;
///头饰url地址
@property (nonatomic,copy) NSString *headwearPic;
///头饰url地址
@property (nonatomic,copy) NSString *headwearEffect;
///头饰类型, 1 = svga
@property (nonatomic, assign) NSInteger headwearType;
///是否在直播中
@property (nonatomic,copy) NSString *inRoomUid;
///显示的标签
@property (nonatomic,copy) NSArray<NSString *> *labelList;
///铭牌名称
@property (nonatomic, copy) NSString *nameplateWord;
///铭牌图片
@property (nonatomic, copy) NSString *nameplatePic;
///是否自定义铭牌,
@property(nonatomic,assign) BOOL isCustomWord;
///话题id
@property (nonatomic, assign) long worldId;
///话题名字
@property (nonatomic, copy) NSString *worldName;
///动态的id
@property (nonatomic,copy) NSString *dynamicId;
///审核状态0=审核中1=通过2=拒绝)
@property (nonatomic, assign) NSInteger status;
///情绪颜色本地标注Hex格式如 #FF0000
@property (nonatomic, copy) NSString *emotionColor;
///是否是折叠起来的
@property (nonatomic,assign) BOOL isFold;
///cell的高度
@property (nonatomic,assign) CGFloat rowHeight;
///图片的高度
@property (nonatomic,assign) CGFloat picHeight;
///文本内容的高度
@property (nonatomic,assign) CGFloat contentHeight;
///显示的内容的富文本
@property (nonatomic,strong) NSMutableAttributedString *contentAttribute;
///收起的
@property (nonatomic,strong, nullable) NSMutableAttributedString *foldAttribute;
// 文本行数
@property (nonatomic, assign) NSInteger numberOfText;
@end
@interface MomentsPicInfoModel : PIBaseModel
///图片的地址
@property (nonatomic,copy) NSString * resUrl;
///格式
@property (nonatomic,copy) NSString *format;
///宽度
@property (nonatomic,assign) CGFloat width;
///高度
@property (nonatomic,assign) CGFloat height;
@end
NS_ASSUME_NONNULL_END