RQProfileModule.m 732 B

12345678910111213141516171819202122232425262728293031323334
  1. //
  2. // RQProfileModule.m
  3. // jiaPei
  4. //
  5. // Created by 张嵘 on 2022/4/25.
  6. // Copyright © 2022 JCZ. All rights reserved.
  7. //
  8. #import "RQProfileModule.h"
  9. @implementation RQProfileModule
  10. static id rq_profileModule = nil;
  11. #pragma mark - init
  12. + (instancetype)sharedInstance {
  13. static dispatch_once_t onceToken;
  14. dispatch_once(&onceToken, ^{
  15. rq_profileModule = [[self alloc] init];
  16. });
  17. return rq_profileModule;
  18. }
  19. - (instancetype)init {
  20. if (self = [super init]) {
  21. }
  22. return self;
  23. }
  24. - (void)getVipInfo {
  25. [[RQ_HTTP_Service getVideoVipWithUserId:RQ_USER_MANAGER.currentUser._id] subscribeNext:^(RQVideoVipModel *videoVipModel) {
  26. RQ_VIP_Module.videoVipModel = videoVipModel;
  27. }];
  28. }
  29. @end