小说绘上架版本
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
//
|
||||
// TFBookStoreLabelModel.h
|
||||
// WXReader
|
||||
//
|
||||
// Created by 谢腾飞 on 2020/12/2.
|
||||
// Copyright © 2020 xtfei_2011@126.com. All rights reserved.
|
||||
//
|
||||
|
||||
#import "TFAdvertModel.h"
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@class TFProductionModel;
|
||||
@interface TFBookStoreLabelModel : TFAdvertModel
|
||||
|
||||
@property (nonatomic ,assign) NSInteger recommend_id; // 推荐位id
|
||||
@property (nonatomic ,assign) NSInteger style; // 展示风格
|
||||
@property (nonatomic ,copy) NSString *label; // 名称
|
||||
@property (nonatomic ,copy) NSString *total; // 漫画数
|
||||
@property (nonatomic ,assign) BOOL can_more; // 是否有更多 true有,false没有
|
||||
@property (nonatomic ,assign) BOOL can_refresh; // 是否有更多 true有,false没有
|
||||
@property (nonatomic ,assign) NSInteger expire_time;
|
||||
@property (nonatomic ,strong) NSArray <TFProductionModel *>*list; // 作品列表
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
@@ -0,0 +1,18 @@
|
||||
//
|
||||
// TFBookStoreLabelModel.m
|
||||
// WXReader
|
||||
//
|
||||
// Created by 谢腾飞 on 2020/12/2.
|
||||
// Copyright © 2020 xtfei_2011@126.com. All rights reserved.
|
||||
//
|
||||
|
||||
#import "TFBookStoreLabelModel.h"
|
||||
|
||||
@implementation TFBookStoreLabelModel
|
||||
|
||||
+ (NSDictionary<NSString *,id> *)modelContainerPropertyGenericClass
|
||||
{
|
||||
return @{@"list" : [TFProductionModel class]};
|
||||
}
|
||||
|
||||
@end
|
||||
@@ -0,0 +1,33 @@
|
||||
//
|
||||
// TFBookStoreModel.h
|
||||
// TFReader
|
||||
//
|
||||
// Created by 谢腾飞 on 2020/12/22.
|
||||
// Copyright © 2020 xtfei_2011@126.com. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
@class TFBannerModel, TFBookStoreLabelModel, TFBookStoreMenusModel;
|
||||
|
||||
@interface TFBookStoreModel : NSObject
|
||||
|
||||
@property (nonatomic ,strong) NSArray <TFBannerModel *>*banner;
|
||||
@property (nonatomic ,strong) NSArray <TFBookStoreLabelModel *>*label;
|
||||
@property (nonatomic ,strong) NSArray <TFBookStoreMenusModel *> *menus_tabs;
|
||||
@property (nonatomic ,strong) NSArray <NSString *>*hot_word;
|
||||
|
||||
@end
|
||||
|
||||
|
||||
|
||||
@interface TFBookStoreMenusModel : NSObject
|
||||
|
||||
@property (nonatomic ,copy) NSString *title;
|
||||
@property (nonatomic ,copy) NSString *icon;
|
||||
@property (nonatomic ,copy) NSString *action;
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
@@ -0,0 +1,28 @@
|
||||
//
|
||||
// TFBookStoreModel.m
|
||||
// TFReader
|
||||
//
|
||||
// Created by 谢腾飞 on 2020/12/22.
|
||||
// Copyright © 2020 xtfei_2011@126.com. All rights reserved.
|
||||
//
|
||||
|
||||
#import "TFBookStoreModel.h"
|
||||
#import "TFBookStoreLabelModel.h"
|
||||
#import "TFUserCenterModel.h"
|
||||
|
||||
@implementation TFBookStoreModel
|
||||
|
||||
+ (NSDictionary<NSString *,id> *)modelContainerPropertyGenericClass
|
||||
{
|
||||
return @{@"banner" : [TFBannerModel class],
|
||||
@"label" : [TFBookStoreLabelModel class],
|
||||
@"menus_tabs": [TFBookStoreMenusModel class]
|
||||
};
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
|
||||
@implementation TFBookStoreMenusModel
|
||||
|
||||
@end
|
||||
@@ -0,0 +1,21 @@
|
||||
//
|
||||
// TFBookStoreRecommend.h
|
||||
// TFReader
|
||||
//
|
||||
// Created by 谢腾飞 on 2020/12/12.
|
||||
// Copyright © 2020 xtfei_2011@126.com. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
@class TFProductionListModel;
|
||||
@interface TFBookStoreRecommend : NSObject
|
||||
|
||||
@property (nonatomic ,copy) NSString *recommendTitle;
|
||||
|
||||
@property (nonatomic ,strong) TFProductionListModel *recommendList;
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
@@ -0,0 +1,21 @@
|
||||
//
|
||||
// TFBookStoreRecommend.m
|
||||
// TFReader
|
||||
//
|
||||
// Created by 谢腾飞 on 2020/12/12.
|
||||
// Copyright © 2020 xtfei_2011@126.com. All rights reserved.
|
||||
//
|
||||
|
||||
#import "TFBookStoreRecommend.h"
|
||||
|
||||
@implementation TFBookStoreRecommend
|
||||
|
||||
+ (NSDictionary *)modelCustomPropertyMapper
|
||||
{
|
||||
return @{
|
||||
@"recommendTitle":@"recommend.title",
|
||||
@"recommendList": @[@"list", @"book"]
|
||||
};
|
||||
}
|
||||
|
||||
@end
|
||||
Reference in New Issue
Block a user