index.ts 858 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. import { http } from '@/utils/http/axios';
  2. /**
  3. * @description: 租户列表
  4. */
  5. export function tenantList(params) {
  6. return http.request({
  7. url: '/tenant/list',
  8. method: 'get',
  9. params,
  10. });
  11. }
  12. /**
  13. * @description: 添加租户
  14. */
  15. export function addTenant(data) {
  16. return http.request({
  17. url: '/tenant/add',
  18. method: 'post',
  19. data,
  20. });
  21. }
  22. /**
  23. * @description: 删除租户
  24. */
  25. export function deleteTenant(data) {
  26. return http.request({
  27. url: '/tenant/delete',
  28. method: 'post',
  29. data,
  30. });
  31. }
  32. /**
  33. * @description: 编辑租户
  34. */
  35. export function editTenant(data) {
  36. return http.request({
  37. url: '/tenant/update',
  38. method: 'post',
  39. data,
  40. });
  41. }
  42. /**
  43. * @description: 租户详情
  44. */
  45. export function tenantInfo(params) {
  46. return http.request({
  47. url: '/tenant/view',
  48. method: 'get',
  49. params,
  50. });
  51. }