| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- //
- // InventoryDetailModel.m
- // IBOSS
- //
- // Created by 关宏厚 on 2018/12/11.
- // Copyright © 2018 elongtian. All rights reserved.
- //
- #import "InventoryDetailModel.h"
- @implementation InventoryDetailModel
- /*!
- * 1.该方法是 `字典里的属性Key` 和 `要转化为模型里的属性名` 不一样 而重写的
- * 前:模型的属性 后:字典里的属性
- */
- + (nullable NSDictionary<NSString *, id> *)modelCustomPropertyMapper{
-
- return @{@"code":@"Code",
- @"onlyCode":@"OnlyCode",
- @"wareHouseName":@"WarehouseName",
- @"goodName":@"GoodsName",
- @"specification":@"Specification",
- @"colorNumber":@"ColorNumber",
- @"brandName":@"BrandName",
- @"gradeName":@"GradeName",
- @"positionNumber":@"PositionNumber",
- @"inventoryQuantity":@"InventoryQuantity",
- @"canSaleQuantity":@"CanSaleQuantity",
- @"price":@"jzj",
- @"circulateType":@"CirculateType",
- @"package":@"Package",
- @"decimalPlaces":@"DecimalPlaces",
- @"seriesName":@"SeriesName",
- @"varietyName":@"VarietyName",
- @"photo":@"Photo"
- };
- }
- - (BOOL)modelCustomTransformFromDictionary:(NSDictionary *)dic {
-
- return YES;
- }
- @end
|