o2.dart 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. class O2 {
  2. static const String o2LogTag = 'JGJSOA';
  3. /// log日志存储目录
  4. static const String logFilePathName = 'o2_log';
  5. // 默认token名称
  6. static const String defaultTokenName = 'x-token-jgjs';
  7. // o2 云 服务地址
  8. static const String o2CloudAPIUrl = "http://jgjs.harbinxiaoshi.cn/";
  9. // 官网 o2oa 服务器
  10. static const String o2oaWwwUrl = "http://jgjs.harbinxiaoshi.cn/";
  11. // 用户协议 地址
  12. static const String userAgreementUrl = 'http://jgjs.harbinxiaoshi.cn/';
  13. // 隐私政策 地址
  14. static const String privacyPolicyUrl = 'http://jgjs.harbinxiaoshi.cn/';
  15. /// 注册模式
  16. static const String registerModeDisable = 'disable';
  17. static const String registerModeCaptcha= 'captcha';
  18. static const String registerModeCode= 'code';
  19. // 极光推送appKey
  20. static const String jPushAppKey = "9aca7cc20fe0cc987cd913ca";
  21. static const String jPushAppChannel = "o2oa_flutter_channel";
  22. static const String jPushType = "jpush";
  23. //
  24. static const String rsaEncryptedYes = 'y';
  25. static const String rsaEncryptedNo = 'n';
  26. static const String rasPemKeyHeader = '-----BEGIN PUBLIC KEY-----\n';
  27. // 默认分页
  28. static const int o2DefaultPageSize = 15;
  29. static const String o2DefaultPageFirstKey = "(0)";
  30. static const String o2DefaultUnitParentId = "-1"; // 顶级id
  31. // webview JavascriptChannel的名称
  32. static const String webviewChannelNameCommonKey = "o2android";
  33. static const String webviewUserAgent = "O2OA";
  34. /// im
  35. static const String imConversationTypeSingle = "single";
  36. static const String imConversationTypeGroup = "group";
  37. /// message type
  38. static const String o2MessageTypeIMCreate = 'im_create'; // 聊天消息
  39. static const String o2MessageTypeIMRevoke = 'im_revoke'; // 聊天消息撤回
  40. static const String o2MeesageTypeIMConversationUpdate = 'im_conv_update'; // 会话更新
  41. static const String o2MeesageTypeIMConversationDelete = 'im_conv_delete'; // 会话删除
  42. // custom key
  43. static const String myCustomNameMyAppList = 'myAppList'; // 自定义数据的key
  44. static const String myCustomIdea = 'idea'; // 常用意见的 key
  45. /// 通讯录权限 视图Key
  46. static const String addressPowerView = 'addressPowerView'; // 自定义数据的key
  47. static const String hiddenMobileNumber = '***********'; // 隐藏手机号码
  48. static const int BBS_IMAGE_MAX_WIDTH = 720;
  49. // 极速打卡通知 id
  50. static const int attendanceFastCheckInNotificationId = 1204;
  51. }