wxFansMsg.js 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. import request from '@/utils/request'
  2. // 创建粉丝消息表
  3. export function createWxFansMsg(data) {
  4. return request({
  5. url: '/wechatMp/wx-fans-msg/create',
  6. method: 'post',
  7. data: data
  8. })
  9. }
  10. // 更新粉丝消息表
  11. export function updateWxFansMsg(data) {
  12. return request({
  13. url: '/wechatMp/wx-fans-msg/update',
  14. method: 'put',
  15. data: data
  16. })
  17. }
  18. // 删除粉丝消息表
  19. export function deleteWxFansMsg(id) {
  20. return request({
  21. url: '/wechatMp/wx-fans-msg/delete?id=' + id,
  22. method: 'delete'
  23. })
  24. }
  25. // 获得粉丝消息表
  26. export function getWxFansMsg(id) {
  27. return request({
  28. url: '/wechatMp/wx-fans-msg/get?id=' + id,
  29. method: 'get'
  30. })
  31. }
  32. // 获得粉丝消息表 分页
  33. export function getWxFansMsgPage(query) {
  34. return request({
  35. url: '/wechatMp/wx-fans-msg/page',
  36. method: 'get',
  37. params: query
  38. })
  39. }
  40. // 导出粉丝消息表 Excel
  41. export function exportWxFansMsgExcel(query) {
  42. return request({
  43. url: '/wechatMp/wx-fans-msg/export-excel',
  44. method: 'get',
  45. params: query,
  46. responseType: 'blob'
  47. })
  48. }