companySms.js 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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 sendStoreOrderMsg(data) {
  33. return request({
  34. url: '/company/companySms/sendOrderMsg',
  35. method: 'post',
  36. data: data
  37. })
  38. }
  39. export function sendPackageOrderMsg(data) {
  40. return request({
  41. url: '/company/companySms/sendPackageOrderMsg',
  42. method: 'post',
  43. data: data
  44. })
  45. }
  46. export function sendCustomerBatchMsg(data) {
  47. return request({
  48. url: '/company/companySms/sendCustomerBatchMsg',
  49. method: 'post',
  50. data: data
  51. })
  52. }
  53. export function getCompanySmsCount() {
  54. return request({
  55. url: '/company/companySms/getCompanySmsCount',
  56. method: 'get'
  57. })
  58. }
  59. // 修改公司短信
  60. export function updateCompanySms(data) {
  61. return request({
  62. url: '/company/companySms',
  63. method: 'put',
  64. data: data
  65. })
  66. }
  67. // 删除公司短信
  68. export function delCompanySms(smsId) {
  69. return request({
  70. url: '/company/companySms/' + smsId,
  71. method: 'delete'
  72. })
  73. }
  74. // 导出公司短信
  75. export function exportCompanySms(query) {
  76. return request({
  77. url: '/company/companySms/export',
  78. method: 'get',
  79. params: query
  80. })
  81. }