companyUserCard.js 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. import request from '@/utils/request'
  2. // 查询card列表
  3. export function listCard(query) {
  4. return request({
  5. url: '/company/companUsercard/list',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. // 查询card详细
  11. export function getCard(id) {
  12. return request({
  13. url: '/company/companUsercard/' + id,
  14. method: 'get'
  15. })
  16. }
  17. // 新增card
  18. export function addCard(data) {
  19. return request({
  20. url: '/company/companUsercard',
  21. method: 'post',
  22. data: data
  23. })
  24. }
  25. // 修改card
  26. export function updateCard(data) {
  27. return request({
  28. url: '/company/companUsercard',
  29. method: 'put',
  30. data: data
  31. })
  32. }
  33. // 删除card
  34. export function delCard(id) {
  35. return request({
  36. url: '/company/companUsercard/' + id,
  37. method: 'delete'
  38. })
  39. }
  40. // 导出card
  41. export function exportCard(query) {
  42. return request({
  43. url: '/company/companUsercard/export',
  44. method: 'get',
  45. params: query
  46. })
  47. }
  48. //群发短信
  49. export function sendCustomerBatchMsg(data) {
  50. return request({
  51. url: '/company/companUsercard/sendCustomerBatchMsg',
  52. method: 'post',
  53. data: data
  54. })
  55. }