小说绘上架版本
This commit is contained in:
+23
@@ -0,0 +1,23 @@
|
||||
//
|
||||
// TFNovelDetailModel.h
|
||||
// TFReader
|
||||
//
|
||||
// Created by 谢腾飞 on 2020/12/19.
|
||||
// Copyright © 2020 xtfei_2011@126.com. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
@class TFCommentsListModel, TFTagModel, TFProductionModel, TFProductionModel, TFBookStoreLabelModel;
|
||||
|
||||
@interface TFNovelDetailModel : NSObject
|
||||
|
||||
@property (nonatomic ,strong) NSArray <TFCommentsListModel *> *comment; // 作品评论列表
|
||||
@property (nonatomic ,strong) NSArray <TFBookStoreLabelModel *> *label; // 推荐作品label
|
||||
@property (nonatomic ,strong) TFProductionModel *bookModel; // 作品基本信息
|
||||
@property (nonatomic ,strong) TFAdvertModel *advert; // 广告
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
+29
@@ -0,0 +1,29 @@
|
||||
//
|
||||
// TFNovelDetailModel.m
|
||||
// TFReader
|
||||
//
|
||||
// Created by 谢腾飞 on 2020/12/19.
|
||||
// Copyright © 2020 xtfei_2011@126.com. All rights reserved.
|
||||
//
|
||||
|
||||
#import "TFNovelDetailModel.h"
|
||||
#import "TFBookStoreLabelModel.h"
|
||||
|
||||
@implementation TFNovelDetailModel
|
||||
|
||||
+ (NSDictionary<NSString *,id> *)modelContainerPropertyGenericClass
|
||||
{
|
||||
return @{
|
||||
@"label" : [TFBookStoreLabelModel class],
|
||||
@"comment" : [TFCommentsListModel class],
|
||||
@"advert" : [TFAdvertModel class]
|
||||
};
|
||||
}
|
||||
|
||||
+ (NSDictionary *)modelCustomPropertyMapper
|
||||
{
|
||||
return @{
|
||||
@"bookModel" : @"book"
|
||||
};
|
||||
}
|
||||
@end
|
||||
Reference in New Issue
Block a user