account.js 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. import request from '@/utils/request'
  2. // 查询企微功能账号管理列表
  3. export function listAccount(query) {
  4. return request({
  5. url: '/qw/account/list',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. // 查询企微功能账号管理详细
  11. export function getAccount(id) {
  12. return request({
  13. url: '/qw/account/' + id,
  14. method: 'get'
  15. })
  16. }
  17. export function updateDevice(id) {
  18. return request({
  19. url: '/qw/account/editDeviceId/' + id,
  20. method: 'get'
  21. })
  22. }
  23. // 新增企微功能账号管理
  24. export function addAccount(data) {
  25. return request({
  26. url: '/qw/account',
  27. method: 'post',
  28. data: data
  29. })
  30. }
  31. // 修改企微功能账号管理
  32. export function updateAccount(data) {
  33. return request({
  34. url: '/qw/account',
  35. method: 'put',
  36. data: data
  37. })
  38. }
  39. // 删除企微功能账号管理
  40. export function delAccount(id) {
  41. return request({
  42. url: '/qw/account/' + id,
  43. method: 'delete'
  44. })
  45. }
  46. // 导出企微功能账号管理
  47. export function exportAccount(query) {
  48. return request({
  49. url: '/qw/account/export',
  50. method: 'get',
  51. params: query
  52. })
  53. }
  54. //根据账号获取设备id
  55. export function getDeviceId(account) {
  56. return request({
  57. url: '/qw/account/getDeviceId/' + account,
  58. method: 'get'
  59. })
  60. }