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.

25 lines
412B

  1. const {request} = require("../request/index")
  2. /**
  3. * 登录
  4. * @param {*} data
  5. */
  6. export const userLogin = function (data) {
  7. return request({
  8. url: '/user/login',
  9. method: 'POST',
  10. data
  11. })
  12. }
  13. /**
  14. * 获取用户信息
  15. * @param {*} data
  16. */
  17. export const getUser = function (data) {
  18. return request({
  19. url: '/user/userInfo',
  20. method: 'POST',
  21. data
  22. })
  23. }