feat:适配多租户
This commit is contained in:
1 parent
cdbb69f843
commit
b370be9111
13 files changed
+175
-8
No files matched your search
@@ -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();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user