ASGoodsDetailsVM.m 793 B

123456789101112131415161718192021
  1. //
  2. // ASGoodsDetailsVM.m
  3. // Asteria
  4. //
  5. // Created by 王猛 on 2023/12/26.
  6. //
  7. #import "ASGoodsDetailsVM.h"
  8. @implementation ASGoodsDetailsVM
  9. - (void)ry_respnsSucessWithPath:(NSString *)mark data:(id)data{
  10. if([mark isEqualToString:Goods_productGetProductsById]){
  11. GoodsInformationM *model = [GoodsInformationM mj_objectWithKeyValues:data];
  12. NSMutableArray *ary = [NSMutableArray arrayWithArray:@[model]];
  13. [self ry_VMconfigDelegateData:data parseAry:ary success:YES mark:mark];
  14. }else if ([mark isEqualToString:Goods_productGetProductsReview]){
  15. NSMutableArray <GoodsReviewsListM *>*array = [GoodsReviewsListM mj_objectArrayWithKeyValuesArray:data[@"items"]];
  16. [self ry_VMconfigDelegateData:data parseAry:array success:YES mark:mark];
  17. }
  18. }
  19. @end