companySms.js 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. import request from '@/utils/request'
  2. // 查询公司短信列表
  3. export function listCompanySms(query) {
  4. return request({
  5. url: '/company/companySms/list',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. // 查询公司短信详细
  11. export function getCompanySms(smsId) {
  12. return request({
  13. url: '/company/companySms/' + smsId,
  14. method: 'get'
  15. })
  16. }
  17. // 新增公司短信
  18. export function addCompanySms(data) {
  19. return request({
  20. url: '/company/companySms',
  21. method: 'post',
  22. data: data
  23. })
  24. }
  25. export function sendCustomerMsg(data) {
  26. return request({
  27. url: '/company/companySms/sendCustomerMsg',
  28. method: 'post',
  29. data: data
  30. })
  31. }
  32. export function sendCustomerBatchMsg(data) {
  33. return request({
  34. url: '/company/companySms/sendCustomerBatchMsg',
  35. method: 'post',
  36. data: data
  37. })
  38. }
  39. export function getCompanySmsCount() {
  40. return request({
  41. url: '/company/companySms/getCompanySmsCount',
  42. method: 'get'
  43. })
  44. }
  45. // 修改公司短信
  46. export function updateCompanySms(data) {
  47. return request({
  48. url: '/company/companySms',
  49. method: 'put',
  50. data: data
  51. })
  52. }
  53. // 删除公司短信
  54. export function delCompanySms(smsId) {
  55. return request({
  56. url: '/company/companySms/' + smsId,
  57. method: 'delete'
  58. })
  59. }
  60. // 导出公司短信
  61. export function exportCompanySms(query) {
  62. return request({
  63. url: '/company/companySms/export',
  64. method: 'get',
  65. params: query
  66. })
  67. }