ASHomeCategoryModel.m 688 B

1234567891011121314151617181920212223242526272829
  1. //
  2. // ASHomeCategoryModel.m
  3. // Asteria
  4. //
  5. // Created by iOS on 2023/6/6.
  6. //
  7. #import "ASHomeCategoryModel.h"
  8. @implementation ASHomeCategoryModel
  9. + (ASHomeCategoryModel *)demoModel {
  10. ASHomeCategoryModel *m = [ASHomeCategoryModel new];
  11. m.title = @"Hot Selling";
  12. m.typeId = [NSString stringWithFormat:@"%u", arc4random()%120221];
  13. m.imgUrl = @"https://www.short-haircut.com/wp-content/uploads/2019/01/9-short-layered-haircuts-for-black-women-1001201920019.jpg";
  14. return m;
  15. }
  16. - (ASJumpModel *)toJumpM {
  17. ASJumpModel *m = [ASJumpModel new];
  18. m.title = self.title;
  19. m.type = self.type;
  20. m.link = self.typeId;
  21. m.image = self.imgUrl;
  22. return m;
  23. }
  24. @end