login.js 609 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. import request from '@/utils/request'
  2. //获取二维码
  3. export function getQrCode(deviceId) {
  4. return request({
  5. url: '/qw/login/getQrCode/' + deviceId,
  6. method: 'get'
  7. })
  8. }
  9. // 二维码
  10. export function verify(data) {
  11. return request({
  12. url: '/qw/login/verify',
  13. method: 'post',
  14. data:data
  15. })
  16. }
  17. export function getQwUser(deviceId) {
  18. return request({
  19. url: '/qw/login/getQwUserInfo/' + deviceId,
  20. method: 'get'
  21. })
  22. }
  23. //企微退出登录
  24. export function qwLoginOut(deviceId) {
  25. return request({
  26. url: '/qw/login/ban',
  27. method: 'post',
  28. data:deviceId
  29. })
  30. }