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 cover;Swift
var cover: 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 } -
Undocumented
Declaration
Objective-C
+ (instancetype)commodityModelWithDict:(NSDictionary *)dict;Swift
convenience init(dict: [AnyHashable : Any])
View on GitHub
PLVCommodityModel Class Reference