JXMemberPromptViewController.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. //
  2. // JXMemberPromptViewController.h
  3. // AICity
  4. //
  5. // Feature: 003-ios-api-https
  6. // Task: T055 - iOS会员购买跳转
  7. // Created on 2025-10-14.
  8. //
  9. #import <UIKit/UIKit.h>
  10. @class JXMemberStatus;
  11. NS_ASSUME_NONNULL_BEGIN
  12. /**
  13. * 会员提示页面视图控制器
  14. *
  15. * 功能:
  16. * - 显示付费内容提示信息
  17. * - 展示当前会员状态
  18. * - 提供会员购买跳转
  19. * - 支持试看功能(如果有)
  20. */
  21. @interface JXMemberPromptViewController : UIViewController
  22. /**
  23. * 剧集ID
  24. */
  25. @property (nonatomic, strong) NSString *episodeId;
  26. /**
  27. * 所需权限级别
  28. */
  29. @property (nonatomic, assign) NSInteger requiredLevel;
  30. /**
  31. * 当前会员状态
  32. */
  33. @property (nonatomic, strong) JXMemberStatus *memberStatus;
  34. /**
  35. * 会员购买成功回调
  36. */
  37. @property (nonatomic, copy) void(^onMemberPurchaseSuccess)(void);
  38. /**
  39. * 取消回调
  40. */
  41. @property (nonatomic, copy) void(^onCancel)(void);
  42. /**
  43. * 试看回调
  44. */
  45. @property (nonatomic, copy) void(^onTrialPlay)(NSTimeInterval trialDuration);
  46. @end
  47. NS_ASSUME_NONNULL_END