基础库
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

60 lines
2.0 KiB

  1. class GlobalConfig {
  2. /// ====================== 后端json返回的key ====================== ///
  3. static final String HTTP_RESPONSE_KEY_CODE = 'code';
  4. static final String HTTP_RESPONSE_KEY_MSG = 'msg';
  5. static final String HTTP_RESPONSE_KEY_DATA = 'data';
  6. /// 成功返回的CODE值
  7. static final int RESPONSE_SUCCESS_CODE = 1;
  8. /// 通用标志key
  9. static final String SKIP_IDENTIFIER = 'skip_identifier';
  10. /// ====================== 第三方登录key ====================== ///
  11. static const String LOGIN_THIRD_ALI = 'taobao'; // 淘宝登录
  12. static const String LOGIN_THIRD_WECHAT = 'wechat'; // 微信
  13. static const String LOGIN_THIRD_QQ = 'qq'; // QQ
  14. static const String LOGIN_THIRD_APPLE = 'apple'; // 苹果登录
  15. /// ====================== 各个渠道的key ====================== ///
  16. static const String PROVIDER_TB = 'taobao'; // 淘宝
  17. static const String PROVIDER_TM = 'tmall'; // 天猫tianmao
  18. static const String PROVIDER_JD = 'jd'; // 京东
  19. static const String PROVIDER_KL = 'kaola'; // 考拉
  20. static const String PROVIDER_VIP = 'vip'; // 唯品会
  21. static const String PROVIDER_SN = 'suning'; // 苏宁
  22. static const String PROVIDER_PDD = 'pdd'; // 拼多多
  23. /// ====================== Shared_prefe_key ====================== ///
  24. /// 用户token
  25. static final String SHARED_KEY_TOKEN = 'sp_token';
  26. /// 用户手机号码
  27. static final String SHARED_KEY_MOBILE = 'sp_mobile';
  28. /// 用户的淘宝授权key
  29. static final String SHARED_KEY_ISAUTH = 'sp_auth';
  30. /// 用户json
  31. static final String SHARED_KEY_USER_INFO = 'sp_userinfo';
  32. /// 货币类型
  33. static final String MONEY_TYPE = "¥ ";
  34. /// 苹果审核
  35. static final String IS_IOS_REVIEW = 'is_ios_review';
  36. ///主要配置
  37. static final String MAIN_CONFIG='sp_main_config';
  38. ///guide缓存表记
  39. static final String GUIDE='sp_guide';
  40. /// 用户协议显示 用户是否同意隐私协议
  41. static String isShowPolicy = "is_show_policy";
  42. /// 用户H5的根域名
  43. static final String H5_DOMAIN = 'sp_h5_domain';
  44. }