YMEditProfileInfoCellViewModel.m 792 B

123456789101112131415161718192021222324
  1. //
  2. // YMEditProfileInfoCellViewModel.m
  3. // MSYOUPAI
  4. //
  5. // Created by YoMi on 2024/2/18.
  6. // Copyright © 2024 MS. All rights reserved.
  7. //
  8. #import "YMEditProfileInfoCellViewModel.h"
  9. @interface YMEditProfileInfoCellViewModel ()
  10. /// 编辑资料类型
  11. @property (nonatomic, assign, readwrite) YMEditProfileType editProfileType;
  12. @end
  13. @implementation YMEditProfileInfoCellViewModel
  14. - (void)ym_initialize{
  15. [super ym_initialize];
  16. NSDictionary *dic = [self.params dictionaryValueForKey:ParamsModel defaultValue:@{}];
  17. self.infoTitle = [dic stringValueForKey:@"title" defaultValue:@""];
  18. self.infoContent = [dic stringValueForKey:@"content" defaultValue:@""];
  19. self.editProfileType = [dic integerValueForKey:ParamsCategoryType defaultValue:YMEditProfileTypeNickname];
  20. }
  21. @end