vip.js 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. import request from "@/utils/request"
  2. // 屏蔽企业-获得屏蔽的企业
  3. export const getBlockEnterpriseList = async () => {
  4. return request({
  5. url: '/app-api/menduner/system/person/enterprise-block/page',
  6. method: 'GET',
  7. custom: {
  8. showLoading: false,
  9. auth: true
  10. }
  11. })
  12. }
  13. // 屏蔽企业-加入屏蔽
  14. export const handleBlockEnterprise = async (data) => {
  15. return request({
  16. url: '/app-api/menduner/system/person/enterprise-block/block',
  17. method: 'POST',
  18. data,
  19. custom: {
  20. showLoading: false,
  21. auth: true
  22. }
  23. })
  24. }
  25. // 屏蔽企业-取消屏蔽
  26. export const handleUnBlockEnterprise = async (enterpriseId) => {
  27. return request({
  28. url: '/app-api/menduner/system/person/enterprise-block/un-block?enterpriseId=' + enterpriseId,
  29. method: 'DELETE',
  30. custom: {
  31. showLoading: false,
  32. auth: true
  33. }
  34. })
  35. }
  36. // 套餐列表
  37. export const getMembershipPackageList = async (enterpriseId) => {
  38. return request({
  39. url: 'app-api/menduner/system/user-package/list',
  40. method: 'GET',
  41. custom: {
  42. showLoading: false,
  43. auth: false
  44. }
  45. })
  46. }