consts.js 448 B

123456789101112131415161718192021222324252627282930
  1. 'use strict';
  2. const TAG = "UNI_OPEN_BRIDGE"
  3. const HTTP_STATUS = {
  4. SUCCESS: 200
  5. }
  6. const ProviderType = {
  7. WEIXIN_MP: 'weixin-mp',
  8. WEIXIN_H5: 'weixin-h5',
  9. WEIXIN_APP: 'weixin-app',
  10. WEIXIN_WEB: 'weixin-web',
  11. QQ_MP: 'qq-mp',
  12. QQ_APP: 'qq-app'
  13. }
  14. // old
  15. const PlatformType = ProviderType
  16. const ErrorCodeType = {
  17. SYSTEM_ERROR: TAG + "_SYSTEM_ERROR"
  18. }
  19. module.exports = {
  20. HTTP_STATUS,
  21. ProviderType,
  22. PlatformType,
  23. ErrorCodeType
  24. }