| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- //
- // JXInteraction.h
- // AICity
- //
- // Created by TogetherWatch on 2025-10-13.
- // Feature: 003-ios-api-https - 剧星短剧平台API接入
- //
- #import <Foundation/Foundation.h>
- NS_ASSUME_NONNULL_BEGIN
- /**
- * 剧星交互数据模型 (UI统计数据)
- */
- @interface JXInteraction : NSObject
- @property (nonatomic, copy) NSString *jxDramaId;
- @property (nonatomic, copy, nullable) NSString *jxEpisodeId;
- @property (nonatomic, assign) long long likeCount; // UI: "2.0万"
- @property (nonatomic, assign) long long commentCount; // UI: "1546"
- @property (nonatomic, assign) long long shareCount; // UI: "2037"
- @property (nonatomic, assign) long long favoriteCount; // UI: "1378"
- @property (nonatomic, assign) long long followCount;
- @property (nonatomic, assign) long long viewCount;
- @property (nonatomic, assign) BOOL isLiked; // 是否已点赞
- @property (nonatomic, assign) BOOL isFavorited; // 是否已收藏
- @property (nonatomic, assign) BOOL isFollowed; // 是否已关注
- @property (nonatomic, strong) NSDate *lastUpdated;
- // 初始化方法
- - (instancetype)initWithDictionary:(NSDictionary *)dict;
- - (NSDictionary *)toDictionary;
- // UI格式化方法
- - (NSString *)formattedLikeCount;
- - (NSString *)formattedCommentCount;
- - (NSString *)formattedShareCount;
- - (NSString *)formattedFavoriteCount;
- - (NSString *)formatCount:(long long)count;
- @end
- NS_ASSUME_NONNULL_END
|