小说绘上架版本

This commit is contained in:
xtfei2011
2021-02-07 11:24:08 +08:00
commit ee5c1c8b12
1762 changed files with 115892 additions and 0 deletions
@@ -0,0 +1,38 @@
//
// TFBookRackModel.h
// TFReader
//
// Created by 谢腾飞 on 2020/12/11.
// Copyright © 2020 xtfei_2011@126.com. All rights reserved.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@class TFBaseInfoModel, TFAnnouncementModel, TFProductionModel, WXYZ_TaskModel;
@interface TFBookRackModel : NSObject
@property (nonatomic ,strong) TFBaseInfoModel *base_info;
@property (nonatomic ,strong) NSArray <TFAnnouncementModel *>* announcement; // 公告
@property (nonatomic ,strong) NSArray <TFProductionModel *>* recommendList; // 推荐
@property (nonatomic ,strong) NSArray <TFProductionModel *>* productionList; // 作品列表
@end
@interface TFBaseInfoModel : NSObject
@property (nonatomic ,assign) NSInteger sign_status;
@end
@interface TFAnnouncementModel : NSObject
@property (nonatomic ,copy) NSString *title;
@property (nonatomic ,copy) NSString *content;
@end
NS_ASSUME_NONNULL_END
@@ -0,0 +1,40 @@
//
// TFBookRackModel.m
// TFReader
//
// Created by 谢腾飞 on 2020/12/11.
// Copyright © 2020 xtfei_2011@126.com. All rights reserved.
//
#import "TFBookRackModel.h"
@implementation TFBookRackModel
+ (NSDictionary *)modelCustomPropertyMapper
{
return @{
@"rackDescription" : @"description",
@"announcement" : @[@"announce", @"announcement"],
@"recommendList" : @[@"recommend_list", @"recommend"],
@"productionList" : @[@"list"]
};
}
+ (NSDictionary<NSString *,id> *)modelContainerPropertyGenericClass
{
return @{
@"announcement" : [TFAnnouncementModel class],
@"recommendList" : [TFProductionModel class],
@"productionList" : [TFProductionModel class]
};
}
@end
@implementation TFBaseInfoModel
@end
@implementation TFAnnouncementModel
@end