YMFeesSettingCellViewModel.m 832 B

123456789101112131415161718192021222324
  1. //
  2. // YMFeesSettingCellViewModel.m
  3. // MSYOUPAI
  4. //
  5. // Created by YoMi on 2024/2/23.
  6. // Copyright © 2024 MS. All rights reserved.
  7. //
  8. #import "YMFeesSettingCellViewModel.h"
  9. @interface YMFeesSettingCellViewModel ()
  10. /// 收费设置功能类型
  11. @property (nonatomic, assign, readwrite) YMFeesSettingFunctionsType feesSettingFunctionsType;
  12. @end
  13. @implementation YMFeesSettingCellViewModel
  14. - (void)ym_initialize{
  15. [super ym_initialize];
  16. NSDictionary *dic = [self.params dictionaryValueForKey:ParamsModel defaultValue:@{}];
  17. self.feesSettingTitle = [dic stringValueForKey:@"title" defaultValue:@""];
  18. self.feesSettingContent = [dic stringValueForKey:@"content" defaultValue:@""];
  19. self.feesSettingFunctionsType = [dic integerValueForKey:ParamsCategoryType defaultValue:YMFeesSettingFunctionsTypeMessagePrice];
  20. }
  21. @end