小说小程序前端代码仓库(小程序)
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.

37 lines
654 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. getSignPackage: {
  12. url: '/all_login/getSignPackage',
  13. method: 'POST',
  14. },
  15. // 绑定手机号码
  16. bindPhone: {
  17. url: '/all_login/bindPhone',
  18. method: 'GET',
  19. auth: true,
  20. },
  21. // 获取用户信息
  22. getUserInfo: {
  23. url: '/all_login/getUserByToken',
  24. method: 'GET',
  25. auth: true,
  26. },
  27. // 更新用户信息
  28. updateInfo: {
  29. url: '/all_login/updateUserInfo',
  30. method: 'POST',
  31. auth: true,
  32. limit: 500,
  33. showLoading: true,
  34. },
  35. }
  36. export default api