import request from '@/config/axios'
|
|
export interface TenantPackageVO {
|
id: number
|
name: string
|
status: number
|
icon: string
|
labels: string
|
description: string
|
remark: string
|
creator: string
|
updater: string
|
updateTime: string
|
menuIds: number[]
|
createTime: Date
|
}
|
|
// 查询租户套餐列表
|
export const getTenantPackagePage = (params: PageParam) => {
|
return request.get({ url: '/system/tenant-package/page', params })
|
}
|
|
// 获得租户
|
export const getTenantPackage = (id: number) => {
|
return request.get({ url: '/system/tenant-package/get?id=' + id })
|
}
|
|
// 新增租户套餐
|
export const createTenantPackage = (data: TenantPackageVO) => {
|
return request.post({ url: '/system/tenant-package/create', data })
|
}
|
|
// 修改租户套餐
|
export const updateTenantPackage = (data: TenantPackageVO) => {
|
return request.put({ url: '/system/tenant-package/update', data })
|
}
|
|
// 删除租户套餐
|
export const deleteTenantPackage = (id: number) => {
|
return request.delete({ url: '/system/tenant-package/delete?id=' + id })
|
}
|
// 获取租户套餐精简信息列表
|
export const getTenantPackageList = () => {
|
return request.get({ url: '/system/tenant-package/simple-list' })
|
}
|