小说小程序前端代码仓库(小程序)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
551 B

7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
  1. // 登录相关接口
  2. const api = {
  3. // 微信小程序授权登录
  4. wxLogin: {
  5. url: '/all_login/appletLogin',
  6. method: 'GET',
  7. limit: 500,
  8. showLoading: true,
  9. },
  10. // 绑定手机号码
  11. bindPhone: {
  12. url: '/all_login/bindPhone',
  13. method: 'GET',
  14. auth: true,
  15. },
  16. // 获取用户信息
  17. getUserInfo: {
  18. url: '/all_login/getUserByToken',
  19. method: 'GET',
  20. auth: true,
  21. },
  22. // 更新用户信息
  23. updateInfo: {
  24. url: '/all_login/updateUserInfo',
  25. method: 'POST',
  26. auth: true,
  27. limit: 500,
  28. showLoading: true,
  29. },
  30. }
  31. export default api