123456789101112131415161718192021222324252627282930313233343536373839404142 |
- //
- // ASProductBaseModel.m
- // Asteria
- //
- // Created by iOS on 2023/6/1.
- //
- #import "ASProductBaseModel.h"
- @implementation ASProductBaseModel
- + (ASProductBaseModel*)demoModel {
- ASProductBaseModel *m = [[ASProductBaseModel alloc] init];
- m.img = @"https://media.glamour.com/photos/5f3e9ad26ed7249924aba0c7/1:1/w_1234,h_1234,c_limit/IMG_2772.jpg";
- m.title = @"HD Lace";
- m.sketchy_app = @"Transparent Wigs Brazilian Front Wigs Straight Hair Body Wave…";
- m.discount_app = @"10%";
- if (arc4random()%2 == 1) {
- m.oldPrice = @"";
- } else {
- m.oldPrice = @"234.43";
- }
- if (arc4random()%2 == 1) {
- m.sketchy_app = @"";
- }
- m.Id = @(arc4random()%12130).stringValue;
- m.nowPrice = @"223.45";
- m.rate_star = [NSString stringWithFormat:@"%u",arc4random()%90 + 2];
- m.sale_num = @"324123";
- return m;
- }
- + (NSDictionary *)mj_replacedKeyFromPropertyName {
- return @{
- @"Id": @"id",
- @"oldPrice": @"price.price",
- @"nowPrice":@"price.final_price",
- };
- }
- @end
|