省钱达人

DetailRequestModel.h 1.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. //
  2. // DetailRequestModel.h
  3. // YouHuiProject
  4. //
  5. // Created by 小花 on 2018/5/22.
  6. // Copyright © 2018年 kuxuan. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import "DRChildGoodModel.h"
  10. #import "DRCommunityDetailModel.h"
  11. #import "DRBuyLimitGoodModel.h"
  12. @interface DetailRequestModel : NSObject
  13. @property (nonatomic, strong) NSString *goods_id;
  14. @property (nonatomic, strong) NSString *is_coupon;
  15. @property (nonatomic, strong) NSString *coupon_price;
  16. @property (nonatomic, strong) NSString *price;
  17. @property (nonatomic, strong) NSString *discount_price;
  18. @property (nonatomic, strong) NSString *commission_rate;
  19. @property (nonatomic, strong) NSString *coupon_start_time;
  20. @property (nonatomic, strong) NSString *coupon_end_time;
  21. /**
  22. 初始化
  23. */
  24. - (instancetype)initWithId:(NSString *)good_id
  25. is_coupon:(NSString *)is_coupon
  26. coupon_price:(NSString *)coupon_price
  27. price:(NSString *)price
  28. discount_price:(NSString *)discount_price
  29. commission_rate:(NSString *)commission_rate
  30. coupon_start_time:(NSString *)coupon_start_time
  31. coupon_end_time:(NSString *)coupon_end_time;
  32. - (instancetype)initWithChildModel:(DRChildGoodModel *)model;
  33. - (instancetype)initWithBuyLimitModel:(DRBuyLimitGoodModel *)model;
  34. - (instancetype)initWithCommunityDetailModel:(DRCommunityDetailModel *)model;
  35. /**
  36. 模型转字典
  37. */
  38. - (NSDictionary *)modelToDictionary;
  39. @end