123456789101112131415161718192021 |
- //
- // ASGoodsDetailsVM.m
- // Asteria
- //
- // Created by 王猛 on 2023/12/26.
- //
- #import "ASGoodsDetailsVM.h"
- @implementation ASGoodsDetailsVM
- - (void)ry_respnsSucessWithPath:(NSString *)mark data:(id)data{
- if([mark isEqualToString:Goods_productGetProductsById]){
- GoodsInformationM *model = [GoodsInformationM mj_objectWithKeyValues:data];
- NSMutableArray *ary = [NSMutableArray arrayWithArray:@[model]];
- [self ry_VMconfigDelegateData:data parseAry:ary success:YES mark:mark];
- }else if ([mark isEqualToString:Goods_productGetProductsReview]){
- NSMutableArray <GoodsReviewsListM *>*array = [GoodsReviewsListM mj_objectArrayWithKeyValuesArray:data[@"items"]];
- [self ry_VMconfigDelegateData:data parseAry:array success:YES mark:mark];
- }
- }
- @end
|