No Description

API.js 1.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. /**
  2. * Created by zack on 2018/5/8.
  3. */
  4. const BaseUrl = 'http://api.links123.net'
  5. const auth = 'auth'
  6. const question = 'question'
  7. const comment = 'comment'
  8. const imgText = '/forum/v1/img_txt'
  9. const login = '/uc/v2/user/account/login'
  10. const signUpByEmail = '/uc/v2/user/email/register'
  11. const signUpByPhone = '/uc/v2/user/mobile/register'
  12. const userSmsCode = '/uc/v2/user/sms/code'
  13. const userEmailCode = '/uc/v2/user/email/code'
  14. const userSmsCodeLogin = '/uc/v2/user/sms/code/login'
  15. const getUserProfile = '/uc/v2/user/profile'
  16. const userProfile = '/uc/v2/user/profile'
  17. const userAvatar = '/uc/v2/user/avatar'
  18. const userEmail = '/uc/v2/user/email'
  19. const userMobile = '/uc/v2/user/mobile'
  20. const userLogout = '/uc/v2/user/logout'
  21. const userPassword = '/uc/v2/user/password'
  22. //聊天服务开发环境
  23. const chatDevServer='121.41.20.11'
  24. const chatDevPort='2015'
  25. const chatProServer = ''
  26. const chatProPort =''
  27. const chatServer = __DEV__?chatDevServer:chatProServer
  28. const chatPort =__DEV__?chatDevPort:chatProPort
  29. export {
  30. BaseUrl,
  31. auth,
  32. question,
  33. comment,
  34. imgText,
  35. login,
  36. signUpByEmail,
  37. signUpByPhone,
  38. userSmsCode,
  39. userEmailCode,
  40. userSmsCodeLogin,
  41. getUserProfile,
  42. userProfile,
  43. userAvatar,
  44. userEmail,
  45. userMobile,
  46. userLogout,
  47. userPassword,
  48. chatServer,
  49. chatPort,
  50. }