InventoryDetailModel.m 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. //
  2. // InventoryDetailModel.m
  3. // IBOSS
  4. //
  5. // Created by 关宏厚 on 2018/12/11.
  6. // Copyright © 2018 elongtian. All rights reserved.
  7. //
  8. #import "InventoryDetailModel.h"
  9. @implementation InventoryDetailModel
  10. /*!
  11. * 1.该方法是 `字典里的属性Key` 和 `要转化为模型里的属性名` 不一样 而重写的
  12. * 前:模型的属性 后:字典里的属性
  13. */
  14. + (nullable NSDictionary<NSString *, id> *)modelCustomPropertyMapper{
  15. return @{@"code":@"Code",
  16. @"onlyCode":@"OnlyCode",
  17. @"wareHouseName":@"WarehouseName",
  18. @"goodName":@"GoodsName",
  19. @"specification":@"Specification",
  20. @"colorNumber":@"ColorNumber",
  21. @"brandName":@"BrandName",
  22. @"gradeName":@"GradeName",
  23. @"positionNumber":@"PositionNumber",
  24. @"inventoryQuantity":@"InventoryQuantity",
  25. @"canSaleQuantity":@"CanSaleQuantity",
  26. @"price":@"jzj",
  27. @"circulateType":@"CirculateType",
  28. @"package":@"Package",
  29. @"decimalPlaces":@"DecimalPlaces",
  30. @"seriesName":@"SeriesName",
  31. @"varietyName":@"VarietyName",
  32. @"photo":@"Photo"
  33. };
  34. }
  35. - (BOOL)modelCustomTransformFromDictionary:(NSDictionary *)dic {
  36. return YES;
  37. }
  38. @end