SPSBAppProfileModel.m 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. //
  2. // SPSBAppProfileModel.m
  3. // 我的社保
  4. //
  5. // Created by shanp on 2021/4/27.
  6. //
  7. #import "SPSBAppProfileModel.h"
  8. #import "SPSBHomeViewADModel.h"
  9. #import <JXHGeneralTools.h>
  10. #import "SPSBHomeViewButtonsModel.h"
  11. @implementation SPSBAppPopImageModel @end
  12. @implementation SPSBAppVersionModel @end
  13. @implementation SPSBAppProfileModel
  14. - (id)GETspsb_entranceFlagWithDictionary:(nullable NSDictionary *)dic key:(NSString *)key {
  15. return [SPSBHomeViewButtonsModel getModelWithDictionary:dic[key]];
  16. }
  17. - (id)GETspsb_adsWithDictionary:(nullable NSDictionary *)dic key:(NSString *)key {
  18. return [SPSBHomeViewADModel getModelListWithArray:dic[key]];
  19. }
  20. - (id)GETspsb_index_policyWithDictionary:(nullable NSDictionary *)dic key:(NSString *)key {
  21. return [SPSBHomeViewADModel getModelListWithArray:dic[key]];
  22. }
  23. - (id)GETspsb_barListWithDictionary:(nullable NSDictionary *)dic key:(NSString *)key {
  24. if (!dic[key] || jxh_isNullClass(dic[key]) || ![dic[key] isKindOfClass:[NSArray class]]) {
  25. return @[];
  26. }
  27. return dic[key];
  28. }
  29. - (id)GETspsb_uriListWithDictionary:(nullable NSDictionary *)dic key:(NSString *)key {
  30. if (!dic[key] || jxh_isNullClass(dic[key]) || ![dic[key] isKindOfClass:[NSArray class]]) {
  31. return @[];
  32. }
  33. return dic[key];
  34. }
  35. - (id)GETspsb_pop_imgWithDictionary:(nullable NSDictionary *)dic key:(NSString *)key {
  36. return [SPSBAppPopImageModel getModelWithDictionary:dic[key]];
  37. }
  38. - (id)GETspsb_vWithDictionary:(nullable NSDictionary *)dic key:(NSString *)key {
  39. return [SPSBAppVersionModel getModelWithDictionary:dic[key]];
  40. }
  41. @end