contactWay.js 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. import request from '@/utils/request'
  2. // 查询企微活码列表
  3. export function listContactWay(query) {
  4. return request({
  5. url: '/qw/contactWay/list',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. export function sync(id) {
  11. return request({
  12. url: '/qw/contactWay/sync/' + id,
  13. method: 'get'
  14. })
  15. }
  16. export function informationList() {
  17. return request({
  18. url: '/qw/contactWay/informationList',
  19. method: 'get'
  20. })
  21. }
  22. export function statistics(query) {
  23. return request({
  24. url: '/qw/contactWay/statistics',
  25. method: 'get',
  26. params: query
  27. })
  28. }
  29. // 查询企微活码详细
  30. export function getContactWay(id) {
  31. return request({
  32. url: '/qw/contactWay/' + id,
  33. method: 'get'
  34. })
  35. }
  36. // 新增企微活码
  37. export function addContactWay(data) {
  38. return request({
  39. url: '/qw/contactWay',
  40. method: 'post',
  41. data: data
  42. })
  43. }
  44. // 修改企微活码
  45. export function updateContactWay(data) {
  46. return request({
  47. url: '/qw/contactWay',
  48. method: 'put',
  49. data: data
  50. })
  51. }
  52. // 删除企微活码
  53. export function delContactWay(id) {
  54. return request({
  55. url: '/qw/contactWay/' + id,
  56. method: 'delete'
  57. })
  58. }
  59. // 导出企微活码
  60. export function exportContactWay(query) {
  61. return request({
  62. url: '/qw/contactWay/export',
  63. method: 'get',
  64. params: query
  65. })
  66. }