小说绘上架版本

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,77 @@
//
// TFRechargeModel.h
// TFReader
//
// Created by 谢腾飞 on 2020/12/14.
// Copyright © 2020 xtfei_2011@126.com. All rights reserved.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@class TFGoodsModel, TFTagModel, TFPayModel;
@interface TFRechargeModel : NSObject
@property (nonatomic ,strong) NSArray<TFGoodsModel *> *list;
@property (nonatomic ,strong) NSArray<NSString *> *about;
@property (nonatomic ,copy) NSString *tips;
@property (nonatomic ,assign) NSInteger goldRemain;
@property (nonatomic ,assign) NSInteger silverRemain;
@property (nonatomic ,copy) NSString *goldUnit;
@property (nonatomic ,copy) NSString *silverUnit;
@property (nonatomic ,assign) BOOL thirdOn;
@end
@interface TFGoodsModel : NSObject
@property (nonatomic ,copy) NSString *note;
@property (nonatomic ,copy) NSString *price;
@property (nonatomic ,copy) NSString *title;
@property (nonatomic ,copy) NSString *sub_title;
@property (nonatomic ,copy) NSString *flag;
@property (nonatomic ,copy) NSString *apple_id;
@property (nonatomic ,copy) NSString *fat_price; //金额,带单位
@property (nonatomic ,strong) NSArray <TFPayModel *>*pal_channel;
@property (nonatomic ,assign) NSInteger goods_id;
@property (nonatomic ,strong) NSArray <TFTagModel *> *tag;
@end
@interface TFPayModel : NSObject
@property (nonatomic ,copy) NSString *icon; //icon
@property (nonatomic ,copy) NSString *title; //名称
@property (nonatomic ,assign) NSInteger channel_id; //渠道id
@property (nonatomic ,assign) NSInteger pay_type; //渠道类型 1原生支付(如支付宝app支付和微信app支付) 2三方wap支付 3三方sdk支付
@property (nonatomic ,copy) NSString *gateway; //跳转网关
@property (nonatomic ,copy) NSString *channel_code; //渠道码,原生和三方SDK支付时需要关注 alipay-支付宝 wechat-微信支付
@end
NS_ASSUME_NONNULL_END
@@ -0,0 +1,49 @@
//
// TFRechargeModel.m
// TFReader
//
// Created by 谢腾飞 on 2020/12/14.
// Copyright © 2020 xtfei_2011@126.com. All rights reserved.
//
#import "TFRechargeModel.h"
@implementation TFRechargeModel
+ (NSDictionary<NSString *,id> *)modelContainerPropertyGenericClass
{
return @{@"list" : [TFGoodsModel class],
@"user" : [TFUserInfoManager class]
};
}
+ (NSDictionary *)modelCustomPropertyMapper
{
return @{
@"list" : @"items",
@"goldUnit" : @"unit_tag.currencyUnit",
@"silverUnit" : @"unit_tag.subUnit"
};
}
@end
@implementation TFGoodsModel
+ (NSDictionary<NSString *,id> *)modelContainerPropertyGenericClass
{
return @{
@"tag" : [TFTagModel class],
@"pal_channel" : [TFPayModel class]
};
}
@end
@implementation TFPayModel
@end