YMAboutUsCellViewModel.m 800 B

123456789101112131415161718192021222324
  1. //
  2. // YMAboutUsCellViewModel.m
  3. // MSYOUPAI
  4. //
  5. // Created by YoMi on 2024/2/21.
  6. // Copyright © 2024 MS. All rights reserved.
  7. //
  8. #import "YMAboutUsCellViewModel.h"
  9. @interface YMAboutUsCellViewModel ()
  10. /// 关于我们标题
  11. @property (nonatomic, copy, readwrite) NSString *aboutUsTitle;
  12. /// 关于我们功能类型
  13. @property (nonatomic, assign, readwrite) YMAboutUsFunctionsType aboutUsFunctionsType;
  14. @end
  15. @implementation YMAboutUsCellViewModel
  16. - (void)ym_initialize{
  17. [super ym_initialize];
  18. NSDictionary *dic = [self.params dictionaryValueForKey:ParamsModel defaultValue:@{}];
  19. self.aboutUsTitle = [dic stringValueForKey:@"title" defaultValue:@""];;
  20. self.aboutUsFunctionsType = [dic integerValueForKey:ParamsCategoryType defaultValue:YMAboutUsFunctionsTypeUserAgreement];
  21. }
  22. @end