小说绘上架版本
This commit is contained in:
+44
@@ -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
|
||||
+37
@@ -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
|
||||
Reference in New Issue
Block a user