天波用户运营管理后台系统
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

82 satır
1.7KB

  1. /*
  2. * @Date: 2022-09-15 16:40:39
  3. * @LastEditors: JinxChen
  4. * @LastEditTime: 2022-09-20 11:25:01
  5. * @FilePath: \TelpoUserManageAdmin\src\api\wechat-fans.js
  6. * @description:
  7. */
  8. import requestWxFans from '@/utils/request-wx-fans';
  9. export const APIWechatFans = {
  10. SelfGroups, //获取自定义分组
  11. getGroupSender, //获取群发列表
  12. addGroupSender, //添加模板消息群发
  13. getArticlesGroup, //获取文章列表
  14. getGroupSenderDetails, //获取单个群发记录
  15. deleteGroupSender, //删除单个群发记录
  16. getTemplateMsgList, //获取模板消息列表
  17. getTemplateById, //根据模板id获取对应的模板消息
  18. };
  19. export default APIWechatFans;
  20. function SelfGroups(data) {
  21. return requestWxFans({
  22. url: '/SelfGroups',
  23. method: 'get',
  24. params: data,
  25. });
  26. }
  27. function getGroupSender(data) {
  28. return requestWxFans({
  29. url: '/GroupSender',
  30. method: 'get',
  31. params: data,
  32. });
  33. }
  34. function getArticlesGroup(data) {
  35. return requestWxFans({
  36. url: '/Articles',
  37. method: 'get',
  38. params: data,
  39. });
  40. }
  41. function addGroupSender(params) {
  42. return requestWxFans({
  43. url: '/GroupSender',
  44. method: 'post',
  45. data: params,
  46. });
  47. }
  48. function getGroupSenderDetails(subject_id, data) {
  49. return requestWxFans({
  50. url: `/GroupSender/${subject_id}/details`,
  51. method: 'get',
  52. params: data,
  53. });
  54. }
  55. function deleteGroupSender(id) {
  56. return requestWxFans({
  57. url: `/GroupSender/${id}`,
  58. method: 'delete',
  59. });
  60. }
  61. function getTemplateMsgList(){
  62. return requestWxFans({
  63. url: `/GroupSender/TemplateMsgTemplates`,
  64. method: 'get',
  65. });
  66. }
  67. function getTemplateById(id){
  68. return requestWxFans({
  69. url: `/GroupSender/TemplateMsgTemplates/${id}`,
  70. method: 'get',
  71. });
  72. }