JLChen
2021-04-30 a5247b61d585627a1a7b1e1f35f34de9f0af9fba
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
//
//  Copyright © 2020 dahua. All rights reserved.
//
 
#import "LCAddDeviceModel.h"
 
@implementation LCAddDeviceModel
 
@end
 
@implementation LCProductDetailModel
 
@end
 
@implementation LCProductModel
 
+ (NSDictionary *)mj_objectClassInArray {
    return @{ @"deviceModelList" : [LCProductDetailModel class]};
}
 
@end
 
@implementation LCOMSImageModel
 
@end
 
@implementation LCOMSIntroductionModel
 
@end
 
@implementation LCOMSModel
 
+ (NSDictionary *)mj_objectClassInArray {
    return @{ @"images" : [LCOMSImageModel class],@"introductions" : [LCOMSIntroductionModel class]};
}
 
- (NSString *)findImageByName:(NSString *)name {
    for (LCOMSImageModel * model in self.images) {
        if ([model.imageName isEqualToString:name]) {
            return model.imageUrl;
        }
    }
    return @"";
}
 
- (NSString *)findContentByName:(NSString *)name {
    for (LCOMSIntroductionModel * model in self.introductions) {
           if ([model.introductionName isEqualToString:name]) {
               return model.introductionContent;
           }
       }
     return @"";
}
 
@end