index.ts 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. import request from '@/config/axios'
  2. export interface TenantPackageVO {
  3. id: number
  4. name: string
  5. status: number
  6. remark: string
  7. creator: string
  8. updater: string
  9. updateTime: string
  10. menuIds: number[]
  11. createTime: Date
  12. }
  13. // 查询租户套餐列表
  14. export const getTenantPackagePage = (params: PageParam) => {
  15. return request.get({ url: '/system/tenant-package/page', params })
  16. }
  17. // 获得租户
  18. export const getTenantPackage = (id: number) => {
  19. return request.get({ url: '/system/tenant-package/get?id=' + id })
  20. }
  21. // 新增租户套餐
  22. export const createTenantPackage = (data: TenantPackageVO) => {
  23. return request.post({ url: '/system/tenant-package/create', data })
  24. }
  25. // 修改租户套餐
  26. export const updateTenantPackage = (data: TenantPackageVO) => {
  27. return request.put({ url: '/system/tenant-package/update', data })
  28. }
  29. // 删除租户套餐
  30. export const deleteTenantPackage = (id: number) => {
  31. return request.delete({ url: '/system/tenant-package/delete?id=' + id })
  32. }
  33. // 获取租户套餐精简信息列表
  34. export const getTenantPackageList = () => {
  35. return request.get({ url: '/system/tenant-package/simple-list' })
  36. }