PLVCommodityModel
Objective-C
@interface PLVCommodityModel : NSObject
Swift
class PLVCommodityModel : NSObject
商品数据模型
-
商品主键
Declaration
Objective-C
@property (nonatomic) NSInteger productId;
Swift
var productId: Int { get set }
-
排序号
Declaration
Objective-C
@property (nonatomic) NSInteger rank;
Swift
var rank: Int { get set }
-
显示序号
Declaration
Objective-C
@property (nonatomic) NSInteger showId;
Swift
var showId: Int { get set }
-
商品名称
Declaration
Objective-C
@property (nonatomic, copy) NSString *_Nonnull name;
Swift
var name: String { get set }
-
原价格
Declaration
Objective-C
@property (nonatomic, copy) NSString *_Nonnull price;
Swift
var price: String { get set }
-
实际价格
Declaration
Objective-C
@property (nonatomic, copy) NSString *_Nonnull realPrice;
Swift
var realPrice: String { get set }
-
收益率/价格
Declaration
Objective-C
@property (nonatomic, copy) NSString *_Nonnull yield;
Swift
var yield: String { get set }
-
商品标签
Declaration
Objective-C
@property (nonatomic, copy) NSString *_Nonnull features;
Swift
var features: String { get set }
-
商品标签数组
Declaration
Objective-C
@property (nonatomic, strong) NSArray *_Nonnull featureArray;
Swift
var featureArray: [Any] { get set }
-
商品描述
Declaration
Objective-C
@property (nonatomic, copy) NSString *_Nonnull productDesc;
Swift
var productDesc: String { get set }
-
封面图片地址
Declaration
Objective-C
@property (nonatomic, copy) NSString *_Nonnull cover;
Swift
var cover: String { get set }
-
商品类型 normal正常商品、finance金融
Declaration
Objective-C
@property (nonatomic, copy) NSString *_Nonnull productType;
Swift
var productType: String { get set }
-
状态:1上架,2下架
Declaration
Objective-C
@property (nonatomic) NSInteger status;
Swift
var status: Int { get set }
-
商品链接类型, 10:通用链接,使用link字段,11:多平台链接,使用mobileAppLink字段
Declaration
Objective-C
@property (nonatomic) NSInteger linkType;
Swift
var linkType: Int { get set }
-
商品链接,通用链接
Declaration
Objective-C
@property (nonatomic, copy) NSString *_Nonnull link;
Swift
var link: String { get set }
-
移动端app链接,默认为空串
Declaration
Objective-C
@property (nonatomic, copy) NSString *_Nonnull mobileAppLink;
Swift
var mobileAppLink: String { get set }
-
购买按钮显示文案
Declaration
Objective-C
@property (nonatomic, copy) NSString *_Nonnull btnShow;
Swift
var btnShow: String { get set }
-
卡片推送规则,bigCard 大卡片、smallCard 小卡片
Declaration
Objective-C
@property (nonatomic, copy) NSString *_Nonnull productPushRule;
Swift
var productPushRule: String { get set }
-
商品购买方式( inner 直接购买、link 外链购买)
Declaration
Objective-C
@property (nonatomic, copy) NSString *_Nonnull buyType;
Swift
var buyType: String { get set }
-
商品物流类型
Declaration
Objective-C
@property (nonatomic, copy) NSString *_Nonnull deliveryType;
Swift
var deliveryType: String { get set }
-
用于统计
Declaration
Objective-C
@property (nonatomic, copy) NSString *_Nonnull logId;
Swift
var logId: String { get set }
-
其它参数
Declaration
Objective-C
@property (nonatomic, strong) NSDictionary *_Nonnull params;
Swift
var params: [AnyHashable : Any] { get set }
-
格式化跳转的商品链接,已进行类型判断
Declaration
Objective-C
@property (nonatomic, copy) NSString *_Nonnull formattedLink;
Swift
var formattedLink: String { get set }
-
Undocumented
Declaration
Objective-C
+ (instancetype)commodityModelWithDict:(NSDictionary *)dict;
Swift
convenience init(dict: [AnyHashable : Any])