Brak opisu

FKOrderGoodItem.m 871B

12345678910111213141516171819202122232425262728293031323334353637
  1. //
  2. // FKOrderGoodItem.m
  3. // FirstLink
  4. //
  5. // Created by ascii on 16/2/22.
  6. // Copyright © 2016年 FirstLink. All rights reserved.
  7. //
  8. #import "FKOrderGoodItem.h"
  9. @implementation FKOrderGoodItem
  10. + (NSDictionary *)mts_mapping {
  11. return @{@"object_id": mts_key(objectID),
  12. @"object_type": mts_key(objectType),
  13. @"user_id": mts_key(userID),
  14. @"goods_id": mts_key(goodsID),
  15. @"title": mts_key(title),
  16. @"pic_url": mts_key(photoURL),
  17. @"price": mts_key(price),
  18. @"quantity": mts_key(quantity),
  19. @"spec_name": mts_key(specName)
  20. };
  21. }
  22. + (BOOL)mts_shouldSetUndefinedKeys {
  23. return NO;
  24. }
  25. - (BOOL)isPindan{
  26. if ([self.objectType isKindOfClass:[NSString class]] && self.objectType.integerValue == 6) {
  27. return YES;
  28. }
  29. return NO;
  30. }
  31. @end