小说绘上架版本

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,44 @@
//
// TFUpgradeMemberModel.h
// TFReader
//
// Created by 谢腾飞 on 2020/12/13.
// Copyright © 2020 xtfei_2011@126.com. All rights reserved.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@class TFMemberInfoModel, TFGoodsModel, TFPrivilegeModel;
@interface TFUpgradeMemberModel : NSObject
@property (nonatomic ,strong) NSArray<TFPrivilegeModel *> *privilege;
@property (nonatomic ,strong) TFMemberInfoModel *user;
@property (nonatomic ,strong) NSArray<TFGoodsModel *> *list;
@property (nonatomic ,strong) NSArray<NSString *> *about; // 提示
@property (nonatomic ,assign) BOOL thirdOn;
@end
@interface TFPrivilegeModel : NSObject
@property (nonatomic ,copy) NSString *label;
@property (nonatomic ,copy) NSString *icon;
@property (nonatomic ,copy) NSString *url;
@property (nonatomic ,copy) NSString *desc;
@property (nonatomic ,copy) NSString *action;
@end
NS_ASSUME_NONNULL_END
@@ -0,0 +1,37 @@
//
// TFUpgradeMemberModel.m
// TFReader
//
// Created by 谢腾飞 on 2020/12/13.
// Copyright © 2020 xtfei_2011@126.com. All rights reserved.
//
#import "TFUpgradeMemberModel.h"
#import "TFRechargeModel.h"
@implementation TFUpgradeMemberModel
+ (NSDictionary<NSString *,id> *)modelContainerPropertyGenericClass
{
return @{@"list" : [TFGoodsModel class], @"privilege" : [TFPrivilegeModel class]};
}
@end
@implementation TFPrivilegeModel
+ (NSDictionary *)modelCustomPropertyMapper
{
return @{
@"production_descirption" :@"description",
@"visited" :@"view",
@"record_title" :@"chapter_title",
@"production_id" :@[@"book_id", @"comic_id", @"audio_id"],
@"name" :@[@"name", @"title", @"book_name", @"comic_name", @"audio_name"],
@"total_chapters" :@[@"total_chapters", @"total_chapter"]
};
}
@end