邃芒慧语、照片说话(PC) https://photo.metavatar.cc/
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 
 

53 行
882 B

  1. import request from "@/utils/request.js";
  2. const baseURL = import.meta.env.VITE_APP_BASE_API
  3. /**
  4. * @description 注册
  5. * @params email,password
  6. * @returns data
  7. */
  8. export function register(data) {
  9. return request({
  10. url: `/api/user/doRegisterByEmail`,
  11. method: 'post',
  12. data
  13. })
  14. }
  15. /**
  16. * @description 登录
  17. * @params email,password,code
  18. * @returns data
  19. */
  20. export function login(data) {
  21. return request({
  22. url: `/api/user/loginByEmail`,
  23. method: 'post',
  24. data
  25. })
  26. }
  27. /**
  28. /**
  29. * @description:重新发送邮件
  30. * @param {string} data
  31. * @return: data
  32. */
  33. export function sendRegisterEmail(email) {
  34. return request({
  35. url: `/api/user/sendRegisterEmail`,
  36. method: 'post',
  37. data: {
  38. email
  39. }
  40. })
  41. }
  42. /**
  43. * @description:获取图形验证码
  44. * @return: 验证码地址
  45. */
  46. export const getCodeImgUrl = baseURL + '/user/captcha.jpg'