RQConstant.h 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. //
  2. // RQConstant.h
  3. // RQCommon
  4. //
  5. // Created by 张嵘 on 2018/11/13.
  6. // Copyright © 2018 张嵘. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import <UIKit/UIKit.h>
  10. /// Block
  11. typedef void (^VoidBlock)(void);
  12. typedef BOOL (^BoolBlock)(void);
  13. typedef int (^IntBlock) (void);
  14. typedef NSInteger (^IntegerBlock) (void);
  15. typedef id (^IDBlock) (void);
  16. typedef void (^VoidBlock_int)(int);
  17. typedef BOOL (^BoolBlock_int)(int);
  18. typedef int (^IntBlock_int) (int);
  19. typedef NSInteger (^IntegerBlock_int) (int);
  20. typedef id (^IDBlock_int) (int);
  21. typedef void (^VoidBlock_integer)(NSInteger);
  22. typedef BOOL (^BoolBlock_integer)(NSInteger);
  23. typedef int (^IntBlock_integer) (NSInteger);
  24. typedef NSInteger (^NSIntegerBlock_integer) (NSInteger);
  25. typedef id (^IDBlock_integer) (NSInteger);
  26. typedef void (^VoidBlock_string)(NSString *);
  27. typedef BOOL (^BoolBlock_string)(NSString *);
  28. typedef int (^IntBlock_string) (NSString *);
  29. typedef NSInteger (^IntegerBlock_string) (NSString *);
  30. typedef id (^IDBlock_string) (NSString *);
  31. typedef void (^VoidBlock_id)(id);
  32. typedef BOOL (^BoolBlock_id)(id);
  33. typedef int (^IntBlock_id) (id);
  34. typedef NSInteger (^IntegerBlock_id) (id);
  35. typedef id (^IDBlock_id) (id);
  36. typedef void (^VoidBlock_Bool)(BOOL);
  37. #pragma mark - 应用相关的
  38. /// 切换根控制器的通知 新特性
  39. FOUNDATION_EXTERN NSString * const RQSwitchRootViewControllerNotification;
  40. /// 切换根控制器的通知 UserInfo key
  41. FOUNDATION_EXTERN NSString * const RQSwitchRootViewControllerUserInfoKey;
  42. /// 插件Switch按钮值改变
  43. FOUNDATION_EXTERN NSString * const RQPlugSwitchValueDidChangedNotification;
  44. /// 切换首页的通知
  45. FOUNDATION_EXTERN NSString * const RQSwitchHomePageViewControllerNotification;
  46. /// 切换首页的通知 UserInfo key
  47. FOUNDATION_EXTERN NSString * const RQSwitchHomePageViewControllerUserInfoKey;
  48. /// 切换个人页的通知
  49. FOUNDATION_EXTERN NSString * const RQSwitchProfilePageViewControllerNotification;
  50. /// 切换个人页的通知 UserInfo key
  51. FOUNDATION_EXTERN NSString * const RQSwitchProfilePageViewControllerUserInfoKey;
  52. /// Loding通用标题
  53. FOUNDATION_EXTERN NSString * const RQLodingCommonTitleString;
  54. /// 全局分割线高度 .5
  55. FOUNDATION_EXTERN CGFloat const RQGlobalBottomLineHeight;
  56. /// 个性签名的最大字数为30
  57. FOUNDATION_EXTERN NSUInteger const RQFeatureSignatureMaxWords;
  58. /// 用户昵称的最大字数为20
  59. FOUNDATION_EXTERN NSUInteger const RQNicknameMaxWords;
  60. /// 隐私协议地址
  61. FOUNDATION_EXTERN NSString * const RQPrivateGuardUrl;
  62. /// 国家区号
  63. FOUNDATION_EXTERN NSString * const RQMobileLoginZoneCodeKey ;
  64. /// 手机号码
  65. FOUNDATION_EXTERN NSString * const RQMobileLoginPhoneKey ;
  66. /// 密码
  67. FOUNDATION_EXTERN NSString * const RQMobileLoginPasswordKey;
  68. /// 验证码
  69. FOUNDATION_EXTERN NSString * const RQCaptchaKey ;
  70. /// 验证码时间
  71. FOUNDATION_EXTERN NSUInteger const RQCaptchaFetchMaxWords;
  72. /// 温州人脸比对次数
  73. FOUNDATION_EXTERN NSUInteger const RQWenZhouFaceNum;
  74. /// 莆田人脸比对次数
  75. FOUNDATION_EXTERN NSUInteger const RQPuTianFaceNum;
  76. /// 微信支付状态
  77. typedef NS_ENUM(NSInteger, RQWeChatPayStatus) {
  78. /// 默认
  79. RQWeChatPayStatusDefault = 0,
  80. /// 支付成功
  81. RQWeChatPayStatusSuccess = 1,
  82. /// 支付失败
  83. RQWeChatPayStatusFailed = 2,
  84. };
  85. ///// 温州理论计时上传图片接口(uploadEduPic)图片类型
  86. //typedef NS_ENUM(NSInteger, LoginFlagType) {
  87. // LoginFlagType_Default = 0, // 默认值
  88. // LoginFlagType_SignIn = 1, // 签到
  89. // LoginFlagType_Process = 2, // 培训过程
  90. // LoginFlagType_SignOut = 3 // 签退
  91. //};
  92. /// 配图的占位图片
  93. static inline UIImage *RQPicturePlaceholder()
  94. {
  95. return [UIImage imageNamed:@"wx_timeline_image_placeholder"];
  96. }