YMGlobalUtils.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. //
  2. // YMGlobalUtils.h
  3. // MSYOUPAI
  4. //
  5. // Created by YoMi on 2024/2/4.
  6. // Copyright © 2024 MS. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import <UIKit/UIKit.h>
  10. #import "YMProvinceModel.h"
  11. #import "YMPayMethodCellViewModel.h"
  12. NS_ASSUME_NONNULL_BEGIN
  13. @interface YMGlobalUtils : NSObject
  14. + (instancetype)shared;
  15. + (UIViewController *)getCurrentVC;
  16. + (void)registerRouter;
  17. - (void)getConfig;
  18. /// 请求省市级
  19. - (void)requestProvinceCity;
  20. /// 请求城市代码
  21. - (void)requestCityCode;
  22. /// 上电视网页链接
  23. - (NSString*)onTvWebUrl;
  24. /// 提示星级网页链接
  25. - (NSString*)increaseStarRatingUrl;
  26. /// 在线客服、合作洽谈网页链接
  27. - (NSString*)helpUrl;
  28. /// 充值协议网页链接
  29. - (NSString*)rechargeAgreementUrl;
  30. /// 未成年保护计划网页链接
  31. - (NSString*)minorProtectionProgramUrl;
  32. /// 获取邀请码
  33. - (void)getInviteCode:(void(^)(NSString *code))handler;
  34. /// 支付方式数据
  35. @property (nonatomic, strong, readonly) NSArray <YMPayMethodCellViewModel*>*payMethodDataArray;
  36. /// 省市级字典
  37. @property (nonatomic, strong, readonly) NSArray *provinceCityArr;
  38. /// 城市代码字典
  39. @property (nonatomic, strong, readonly) NSDictionary *cityCodeDic;
  40. @end
  41. NS_ASSUME_NONNULL_END