增加换肤功能
This commit is contained in:
130
QXLive/Dynamic(语圈)/Model/QXDynamicModel.h
Normal file
130
QXLive/Dynamic(语圈)/Model/QXDynamicModel.h
Normal file
@@ -0,0 +1,130 @@
|
||||
//
|
||||
// QXDynamicModel.h
|
||||
// QXLive
|
||||
//
|
||||
// Created by 启星 on 2025/5/29.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
@class QXTopicModel,QXDynamicLikeModel;
|
||||
@interface QXDynamicModel : NSObject
|
||||
/// 动态id
|
||||
@property (nonatomic,strong)NSString *id;
|
||||
/// 用户id
|
||||
@property (nonatomic,strong)NSString *user_id;
|
||||
/// 用户id
|
||||
@property (nonatomic,strong)NSString *user_code;
|
||||
/// 图片,隔开
|
||||
@property (nonatomic,strong)NSString *images;
|
||||
/// 性别 1男2女
|
||||
@property (nonatomic,strong)NSString *sex;
|
||||
/// 内容
|
||||
@property (nonatomic,strong)NSString *content;
|
||||
/// 点赞数
|
||||
@property (nonatomic,strong)NSString *like_num;
|
||||
/// 评论数
|
||||
@property (nonatomic,strong)NSString *comment_num;
|
||||
/// 话题名称
|
||||
@property (nonatomic,strong)NSArray<QXTopicModel*> *title;
|
||||
/// 打赏金额
|
||||
@property (nonatomic,strong)NSString *rewards_num;
|
||||
/// 是否点赞1点,0未
|
||||
@property (nonatomic,strong)NSString *is_like;
|
||||
/// 作者是否在房间中(1在,0不在)
|
||||
@property (nonatomic,strong)NSString *is_room;
|
||||
/// 作者所在房间ID (is_room =0 此值小于0 )
|
||||
@property (nonatomic,strong)NSString *room_id;
|
||||
/// 头像
|
||||
@property (nonatomic,strong)NSString *avatar;
|
||||
/// 装扮
|
||||
@property (nonatomic,strong)NSString *dress;
|
||||
/// 昵称
|
||||
@property (nonatomic,strong)NSString *nickname;
|
||||
/// 时间
|
||||
@property (nonatomic,strong)NSString *createtime;
|
||||
/// 是否为推荐
|
||||
@property (nonatomic,strong)NSString *is_recommend;
|
||||
/// 昵称
|
||||
@property (nonatomic,strong)NSString *share_url;
|
||||
|
||||
@property (nonatomic,strong)NSArray<QXDynamicLikeModel*> *like_list;
|
||||
@end
|
||||
|
||||
|
||||
@interface QXTopicModel : NSObject<YYModel>
|
||||
/// id
|
||||
@property (nonatomic,strong)NSString *topic_id;
|
||||
/// 话题描述
|
||||
@property (nonatomic,strong)NSString *content;
|
||||
/// 话题名称
|
||||
@property (nonatomic,strong)NSString *title;
|
||||
/// 话题图片
|
||||
@property (nonatomic,strong)NSString *pic;
|
||||
/// 多少条动态
|
||||
@property (nonatomic,strong)NSString *count;
|
||||
/// 选择
|
||||
@property (nonatomic,assign)BOOL isSelected;
|
||||
@end
|
||||
|
||||
#pragma mark - 点赞列表
|
||||
@interface QXDynamicLikeModel : NSObject<YYModel>
|
||||
/// 用户id
|
||||
@property (nonatomic,strong)NSString *user_id;
|
||||
/// 昵称
|
||||
@property (nonatomic,strong)NSString *nickname;
|
||||
/// 头像
|
||||
@property (nonatomic,strong)NSString *avatar;
|
||||
/// 年龄
|
||||
@property (nonatomic,strong)NSString *age;
|
||||
/// 星座
|
||||
@property (nonatomic,strong)NSString *constellation;
|
||||
/// 生日
|
||||
@property (nonatomic,strong)NSString *birthday;
|
||||
/// 性别 1 男 2女
|
||||
@property (nonatomic,strong)NSString *sex;
|
||||
@end
|
||||
|
||||
#pragma mark - 评论列表
|
||||
@class QXDynamicCommentListModel;
|
||||
@interface QXDynamicCommentModel : NSObject
|
||||
|
||||
@property (nonatomic,strong)NSArray<QXDynamicCommentListModel*>* list;
|
||||
/// 总评论数
|
||||
@property (nonatomic,strong)NSString* total;
|
||||
|
||||
|
||||
@end
|
||||
|
||||
@interface QXDynamicCommentListModel : NSObject
|
||||
/// 评论ID
|
||||
@property (nonatomic,strong)NSString *id;
|
||||
/// 动态ID
|
||||
@property (nonatomic,strong)NSString *zone_id;
|
||||
/// 评论内容
|
||||
@property (nonatomic,strong)NSString *content;
|
||||
/// 时间
|
||||
@property (nonatomic,strong)NSString *createtime;
|
||||
/// 评论者ID
|
||||
@property (nonatomic,strong)NSString *user_id;
|
||||
/// 评论者
|
||||
@property (nonatomic,strong)NSString *nickname;
|
||||
/// 评论者头像
|
||||
@property (nonatomic,strong)NSString *avatar;
|
||||
/// 评论者是否作者 0不是,1
|
||||
@property (nonatomic,strong)NSString *is_author;
|
||||
/// 二级评论
|
||||
@property (nonatomic,strong)NSArray<QXDynamicCommentListModel*> *replies;
|
||||
|
||||
|
||||
/// 以上为一级评论 下面是二级评论
|
||||
/// 回复给谁的ID
|
||||
@property (nonatomic,strong)NSString *reply_to;
|
||||
/// 上级评论的ID
|
||||
@property (nonatomic,strong)NSString *pid;
|
||||
/// 回复给谁
|
||||
@property (nonatomic,strong)NSString *reply_to_user;
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
51
QXLive/Dynamic(语圈)/Model/QXDynamicModel.m
Normal file
51
QXLive/Dynamic(语圈)/Model/QXDynamicModel.m
Normal file
@@ -0,0 +1,51 @@
|
||||
//
|
||||
// QXDynamicModel.m
|
||||
// QXLive
|
||||
//
|
||||
// Created by 启星 on 2025/5/29.
|
||||
//
|
||||
|
||||
#import "QXDynamicModel.h"
|
||||
|
||||
@implementation QXDynamicModel
|
||||
+(NSDictionary<NSString *,id> *)modelContainerPropertyGenericClass{
|
||||
return @{
|
||||
@"title" : @"QXTopicModel",
|
||||
@"like_list":@"QXDynamicLikeModel"
|
||||
};
|
||||
}
|
||||
@end
|
||||
|
||||
@implementation QXTopicModel
|
||||
|
||||
|
||||
@end
|
||||
|
||||
|
||||
@implementation QXDynamicLikeModel
|
||||
|
||||
|
||||
|
||||
@end
|
||||
|
||||
@implementation QXDynamicCommentModel
|
||||
|
||||
+(NSDictionary<NSString *,id> *)modelContainerPropertyGenericClass{
|
||||
return @{
|
||||
@"list" : @"QXDynamicCommentListModel",
|
||||
};
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
@implementation QXDynamicCommentListModel
|
||||
|
||||
+(NSDictionary<NSString *,id> *)modelContainerPropertyGenericClass{
|
||||
return @{
|
||||
@"replies" : @"QXDynamicCommentListModel",
|
||||
};
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user