companyAccount.js 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. import request from '@/utils/request'
  2. // 查询个微账号列表
  3. export function listCompanyAccount(query) {
  4. return request({
  5. url: '/company/companyWx/list',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. // 查询个微账号列表
  11. export function companyListAll(query) {
  12. return request({
  13. url: '/company/companyWx/companyListAll',
  14. method: 'get',
  15. params: query
  16. })
  17. }
  18. // 查询个微账号列表
  19. export function listAll(query) {
  20. return request({
  21. url: '/company/companyWx/listAll',
  22. method: 'get',
  23. params: query
  24. })
  25. }
  26. // 查询个微账号详细
  27. export function getCompanyAccount(id) {
  28. return request({
  29. url: '/company/companyWx/' + id,
  30. method: 'get'
  31. })
  32. }
  33. // 新增个微账号
  34. export function addCompanyAccount(data) {
  35. return request({
  36. url: '/company/companyWx',
  37. method: 'post',
  38. data: data
  39. })
  40. }
  41. // 修改个微账号
  42. export function updateCompanyAccount(data) {
  43. return request({
  44. url: '/company/companyWx',
  45. method: 'put',
  46. data: data
  47. })
  48. }
  49. // 删除个微账号
  50. export function delCompanyAccount(id) {
  51. return request({
  52. url: '/company/companyWx/' + id,
  53. method: 'delete'
  54. })
  55. }
  56. // 导出个微账号
  57. export function exportCompanyAccount(query) {
  58. return request({
  59. url: '/company/companyWx/export',
  60. method: 'get',
  61. params: query
  62. })
  63. }
  64. // 导出个微账号
  65. export function getWxQrCode(query) {
  66. return request({
  67. url: '/company/companyWx/getWxQrCode',
  68. method: 'get',
  69. params: query
  70. })
  71. }
  72. // 导出个微账号
  73. export function getLoginStatus(query) {
  74. return request({
  75. url: '/company/companyWx/getLoginStatus',
  76. method: 'get',
  77. params: query
  78. })
  79. }
  80. // 导出个微账号
  81. export function bindService(query) {
  82. return request({
  83. url: '/company/companyWx/bindService',
  84. method: 'get',
  85. params: query
  86. })
  87. }
  88. // 导出个微账号
  89. export function wakeUpLogin(query) {
  90. return request({
  91. url: '/company/companyWx/wakeUpLogin',
  92. method: 'get',
  93. params: query
  94. })
  95. }
  96. // 导出个微账号
  97. export function updateWxInfo(query) {
  98. return request({
  99. url: '/company/companyWx/updateWxInfo',
  100. method: 'get',
  101. params: query
  102. })
  103. }
  104. // 导出个微账号
  105. export function wxLoginOut(query) {
  106. return request({
  107. url: '/company/companyWx/wxLoginOut',
  108. method: 'get',
  109. params: query
  110. })
  111. }
  112. export function syncWx(query) {
  113. return request({
  114. url: '/company/companyWx/syncWx',
  115. method: 'get',
  116. params: query
  117. })
  118. }