user.js 338 B

12345678910111213141516171819
  1. import request from "../request";
  2. export function login(data) {
  3. return request("/wechat/mini/login", {
  4. method: "POST",
  5. data,
  6. });
  7. }
  8. export function pwdLogin(data) {
  9. return request("/login/password", {
  10. method: "POST",
  11. data,
  12. });
  13. }
  14. export function getUserInfo() {
  15. return request("/profile", { method: "GET" });
  16. }