feat:适配多租户

This commit is contained in:
dzc committed 2025-04-22 15:15:46 +08:00
1 parent cdbb69f843
commit b370be9111
13 files changed
+175 -8

No files matched your search

+9
View File
@@ -56,4 +56,13 @@ abstract class UserApi {
?.map<ServiceAsyncFace>((e) => ServiceAsyncFace.fromJson(e))
.toList();
}
/// 获取租户列表
static Future<List<ServiceTenant>?> getTenantList() async {
final res = await HttpManage().dio.get("/admin/tenant/list");
if (res.data == null) return null;
return res.data
?.map<ServiceTenant>((e) => ServiceTenant.fromJson(e))
.toList();
}
}