feat: 租户套餐

This commit is contained in:
dap
2024-10-05 23:32:51 +08:00
parent 74d56ddd82
commit a392c0a293
3 changed files with 213 additions and 11 deletions

View File

@@ -1,6 +1,6 @@
import type { TenantPackage } from './model';
import type { ID, IDS, PageQuery } from '#/api/common';
import type { ID, IDS, PageQuery, PageResult } from '#/api/common';
import { commonExport } from '#/api/helper';
import { requestClient } from '#/api/request';
@@ -14,7 +14,9 @@ enum Api {
}
export function packageList(params?: PageQuery) {
return requestClient.get<TenantPackage[]>(Api.packageList, { params });
return requestClient.get<PageResult<TenantPackage>>(Api.packageList, {
params,
});
}
// 下拉框