user.js 639 B

123456789101112131415161718192021222324252627
  1. import {
  2. http
  3. } from '@/utils/http';
  4. import ENV from '@/config/env.js';
  5. /**
  6. * @description 用户登录
  7. * @param {object} data
  8. */
  9. export function login(data) {
  10. return http.post(ENV.VUE_APP_FileServer + `?MethodName=login_control-Login`, data);
  11. }
  12. /**
  13. * @description 校验用户是否登录(是否有效用户)
  14. */
  15. export function loginControlIsEffectiveUser() {
  16. return http.post(ENV.VUE_APP_FileServer + `?MethodName=login_control-Is_Effective_User`);
  17. }
  18. /**
  19. * @description 得到我的用户信息
  20. */
  21. export function GetMyUserInfo() {
  22. return http.post(ENV.VUE_APP_FileServer + `?MethodName=user_manager-GetMyUserInfo`);
  23. }