// // SPSBBusinessManager.h // 我的社保 // // Created by shanp on 2021/4/19. // #import #import @class SPSBNetworkManager, SPSBPurchasersModel, SPSBShebaoData, SPSBMyPurchaseOrder, SPSBRedDotModel, SPSBHomeViewADModel, JXHPhotoManager, SPSBHomeViewButtonsModel; NS_ASSUME_NONNULL_BEGIN #pragma mark - 数据 NSArray *spsb_householdRegisterArray(void); NSArray *spsb_bankArray(void); NSDictionary *spsb_bankIconDictionary(void); NSDictionary *spsb_alipayBankDictionary(void); NSString *spsb_defaultSupplementaryPayNote(void); NSArray *spsb_getIsPurchaseSSCardArray(void); #pragma mark - App相关 bool spsb_isAppActive(void); void spsb_setAppActive(bool active); SPSBHomeViewButtonsModel * _Nullable spsb_homeViewButtons(void); void spsb_setHomeViewButtons(SPSBHomeViewButtonsModel *model); NSArray *spsb_adsArray(void); void spsb_setAdsArray(NSArray *array); NSArray *spsb_policyArray(void); void spsb_setPolicyArray(NSArray *array); NSString *spsb_lastCheckPublicDataCity(void);//上次查询官网城市 void spsb_setLastCheckPublicDataCity(NSString *lastCheckPublicDataCity); NSString *spsb_locationCheckPublicDataCity(void);//定位查询官网城市 void spsb_setLocationCheckPublicDataCity(NSString *locationCheckPublicDataCity); CLLocationCoordinate2D spsb_coordinate(void); void spsb_setCoordinate(CLLocationCoordinate2D coordinate); SPSBRedDotModel *spsb_redDotModel(void); void spsb_setRedDotModel(SPSBRedDotModel *redDot); NSInteger spsb_wxpayLimit(void);//微信支付限制 void spsb_setWxpayLimit(NSInteger wxpayLimit); void spsb_setIsOpenAlbum(bool isOpenAlbum); bool spsb_isOpenAlbum(void); NSInteger spsb_firstYear(void); void spsb_setFirstYear(NSInteger year); #pragma mark - 账号相关 bool spsb_isLogin(void); void spsb_setLogin(bool login); NSString *spsb_loginToken(void); void spsb_setLoginToken(NSString *loginToken); #pragma mark - 购买社保公积金相关 #define SPSBshebaoData_beginMonth spsb_month #define SPSBshebaoData_leastMonths spsb_nums #define SPSBshebaoData_deadline spsb_inc_date #define SPSBshebaoData_canPack spsb_pack #define SPSBshebaoData_canSingleBuyFund spsb_fund_buy #define SPSBshebaoData_canSingleBuyShebao spsb_sb_alone #define SPSBshebaoData_canBuyFund spsb_fund_buy2 #define SPSBshebaoData_shebaoSupplementaryPayMonth spsb_addeds_num #define SPSBshebaoData_fundSupplementaryPayMonth spsb_addedf_num SPSBShebaoData *spsb_shebaoData(void);//当前选择的社保(公积金)信息 void spsb_setShebaoData(SPSBShebaoData * _Nullable data); NSArray *spsb_shebaoDataArray(void);//社保(公积金)信息数组 void spsb_setShebaoDataArray(NSArray * _Nullable array); SPSBMyPurchaseOrder * _Nullable spsb_myPurchaseOrder(void);//购买信息 void spsb_setMyPurchaseOrder(SPSBMyPurchaseOrder * _Nullable data); NSString *spsb_changeTimeToNumber(NSString *time); NSString *spsb_changeTime(NSString *time); #pragma mark - 用户相关 NSArray *spsb_purchasersArray(void);//参保人信息列表 void spsb_setPurchasersArray(NSArray *array); NSString *spsb_userAvatar(void); void spsb_setUserAvatar(NSString *avatar); NSArray *spsb_selectedCityArray(void); void spsb_setSelectedCityArray(NSArray *array); #pragma mark - 相册相关 bool spsb_publishCanChooseVideo(void); void spsb_setPublishCanChooseVideo(bool can); NSUInteger spsb_publishMaxCount(void); void spsb_setPublishMaxCount(NSUInteger max); NSUInteger spsb_alreadyChosePublishPhoto(void); NSArray *spsb_currentChosePublishPhotos(void); NSArray *spsb_cleanCurrentChosePublishPhotos(NSUInteger alreadyChose); void spsb_changeCurrentChosePublishPhotos(JXHPhotoManager *item, NSUInteger index); SPSBNetworkManager *spsb_globalNetworkManager(void); #pragma mark - 展示相关 NSString *spsb_changeDisplayBankCode(NSString *code); #pragma mark - Action typedef void(^SPSBFinishLoginBlock)(void); void spsb_needLogin(SPSBFinishLoginBlock finish); NS_ASSUME_NONNULL_END