51 lines
1.1 KiB
Objective-C
51 lines
1.1 KiB
Objective-C
//
|
|
// TFProductionChapterModel.m
|
|
// TFReader
|
|
//
|
|
// Created by 谢腾飞 on 2020/12/11.
|
|
// Copyright © 2020 xtfei_2011@126.com. All rights reserved.
|
|
//
|
|
|
|
#import "TFProductionChapterModel.h"
|
|
|
|
@implementation TFProductionChapterModel
|
|
|
|
+ (NSDictionary<NSString *,id> *)modelContainerPropertyGenericClass
|
|
{
|
|
return @{@"tag" : [TFTagModel class],
|
|
@"advert" : [TFAdvertModel class],
|
|
@"image_list" : [TFImageListModel class]
|
|
};
|
|
}
|
|
|
|
+ (NSDictionary *)modelCustomPropertyMapper
|
|
{
|
|
return @{
|
|
@"production_id":@[@"book_id", @"comic_id", @"audio_id"],
|
|
@"relation_production_id":@"relation_book_id",
|
|
@"total_words":@"words",
|
|
@"name" :@[@"name", @"title", @"book_name", @"comic_name", @"audio_name"],
|
|
@"cover":@[@"cover", @"small_cover"]
|
|
};
|
|
}
|
|
|
|
- (void)setAuthor_note:(NSString *)author_note
|
|
{
|
|
_author_note = author_note;
|
|
}
|
|
|
|
@end
|
|
|
|
|
|
|
|
@implementation TFImageListModel
|
|
|
|
+ (NSDictionary *)modelCustomPropertyMapper
|
|
{
|
|
return @{
|
|
@"image_update_time":@"update_time"
|
|
};
|
|
}
|
|
|
|
@end
|