SPSBBusinessManager.h 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. //
  2. // SPSBBusinessManager.h
  3. // 我的社保
  4. //
  5. // Created by shanp on 2021/4/19.
  6. //
  7. #import <UIKit/UIKit.h>
  8. #import <CoreLocation/CoreLocation.h>
  9. @class SPSBNetworkManager, SPSBPurchasersModel, SPSBShebaoData, SPSBMyPurchaseOrder, SPSBRedDotModel, SPSBHomeViewADModel, JXHPhotoManager, SPSBHomeViewButtonsModel;
  10. NS_ASSUME_NONNULL_BEGIN
  11. #pragma mark - 数据
  12. NSArray *spsb_householdRegisterArray(void);
  13. NSArray *spsb_bankArray(void);
  14. NSDictionary *spsb_bankIconDictionary(void);
  15. NSDictionary *spsb_alipayBankDictionary(void);
  16. NSString *spsb_defaultSupplementaryPayNote(void);
  17. NSArray<NSString *> *spsb_getIsPurchaseSSCardArray(void);
  18. #pragma mark - App相关
  19. bool spsb_isAppActive(void);
  20. void spsb_setAppActive(bool active);
  21. SPSBHomeViewButtonsModel * _Nullable spsb_homeViewButtons(void);
  22. void spsb_setHomeViewButtons(SPSBHomeViewButtonsModel *model);
  23. NSArray<SPSBHomeViewADModel *> *spsb_adsArray(void);
  24. void spsb_setAdsArray(NSArray<SPSBHomeViewADModel *> *array);
  25. NSArray<SPSBHomeViewADModel *> *spsb_policyArray(void);
  26. void spsb_setPolicyArray(NSArray<SPSBHomeViewADModel *> *array);
  27. NSString *spsb_lastCheckPublicDataCity(void);//上次查询官网城市
  28. void spsb_setLastCheckPublicDataCity(NSString *lastCheckPublicDataCity);
  29. NSString *spsb_locationCheckPublicDataCity(void);//定位查询官网城市
  30. void spsb_setLocationCheckPublicDataCity(NSString *locationCheckPublicDataCity);
  31. CLLocationCoordinate2D spsb_coordinate(void);
  32. void spsb_setCoordinate(CLLocationCoordinate2D coordinate);
  33. SPSBRedDotModel *spsb_redDotModel(void);
  34. void spsb_setRedDotModel(SPSBRedDotModel *redDot);
  35. NSInteger spsb_wxpayLimit(void);//微信支付限制
  36. void spsb_setWxpayLimit(NSInteger wxpayLimit);
  37. void spsb_setIsOpenAlbum(bool isOpenAlbum);
  38. bool spsb_isOpenAlbum(void);
  39. NSInteger spsb_firstYear(void);
  40. void spsb_setFirstYear(NSInteger year);
  41. #pragma mark - 账号相关
  42. bool spsb_isLogin(void);
  43. void spsb_setLogin(bool login);
  44. NSString *spsb_loginToken(void);
  45. void spsb_setLoginToken(NSString *loginToken);
  46. #pragma mark - 购买社保公积金相关
  47. #define SPSBshebaoData_beginMonth spsb_month
  48. #define SPSBshebaoData_leastMonths spsb_nums
  49. #define SPSBshebaoData_deadline spsb_inc_date
  50. #define SPSBshebaoData_canPack spsb_pack
  51. #define SPSBshebaoData_canSingleBuyFund spsb_fund_buy
  52. #define SPSBshebaoData_canSingleBuyShebao spsb_sb_alone
  53. #define SPSBshebaoData_canBuyFund spsb_fund_buy2
  54. #define SPSBshebaoData_shebaoSupplementaryPayMonth spsb_addeds_num
  55. #define SPSBshebaoData_fundSupplementaryPayMonth spsb_addedf_num
  56. SPSBShebaoData *spsb_shebaoData(void);//当前选择的社保(公积金)信息
  57. void spsb_setShebaoData(SPSBShebaoData * _Nullable data);
  58. NSArray<SPSBShebaoData *> *spsb_shebaoDataArray(void);//社保(公积金)信息数组
  59. void spsb_setShebaoDataArray(NSArray<SPSBShebaoData *> * _Nullable array);
  60. SPSBMyPurchaseOrder * _Nullable spsb_myPurchaseOrder(void);//购买信息
  61. void spsb_setMyPurchaseOrder(SPSBMyPurchaseOrder * _Nullable data);
  62. NSString *spsb_changeTimeToNumber(NSString *time);
  63. NSString *spsb_changeTime(NSString *time);
  64. #pragma mark - 用户相关
  65. NSArray<SPSBPurchasersModel *> *spsb_purchasersArray(void);//参保人信息列表
  66. void spsb_setPurchasersArray(NSArray<SPSBPurchasersModel *> *array);
  67. NSString *spsb_userAvatar(void);
  68. void spsb_setUserAvatar(NSString *avatar);
  69. NSArray *spsb_selectedCityArray(void);
  70. void spsb_setSelectedCityArray(NSArray *array);
  71. #pragma mark - 相册相关
  72. bool spsb_publishCanChooseVideo(void);
  73. void spsb_setPublishCanChooseVideo(bool can);
  74. NSUInteger spsb_publishMaxCount(void);
  75. void spsb_setPublishMaxCount(NSUInteger max);
  76. NSUInteger spsb_alreadyChosePublishPhoto(void);
  77. NSArray<JXHPhotoManager *> *spsb_currentChosePublishPhotos(void);
  78. NSArray<JXHPhotoManager *> *spsb_cleanCurrentChosePublishPhotos(NSUInteger alreadyChose);
  79. void spsb_changeCurrentChosePublishPhotos(JXHPhotoManager *item, NSUInteger index);
  80. SPSBNetworkManager *spsb_globalNetworkManager(void);
  81. #pragma mark - 展示相关
  82. NSString *spsb_changeDisplayBankCode(NSString *code);
  83. #pragma mark - Action
  84. typedef void(^SPSBFinishLoginBlock)(void);
  85. void spsb_needLogin(SPSBFinishLoginBlock finish);
  86. NS_ASSUME_NONNULL_END