forked from baron/baron-sso
테넌트 조회 API 연동
This commit is contained in:
@@ -3,6 +3,7 @@ import apiClient from "../../lib/apiClient";
|
||||
export interface Tenant {
|
||||
id: string;
|
||||
name: string;
|
||||
phone?: string;
|
||||
slug: string;
|
||||
}
|
||||
|
||||
@@ -10,6 +11,7 @@ export interface UserProfile {
|
||||
id: string;
|
||||
email: string;
|
||||
name: string;
|
||||
phone?: string;
|
||||
role: string;
|
||||
phone?: string;
|
||||
companyCode?: string;
|
||||
|
||||
@@ -266,3 +266,14 @@ export async function fetchDevAuditLogs(
|
||||
);
|
||||
return data;
|
||||
}
|
||||
|
||||
export type TenantSummary = {
|
||||
id: string;
|
||||
name: string;
|
||||
slug: string;
|
||||
};
|
||||
|
||||
export async function fetchMyTenants() {
|
||||
const { data } = await apiClient.get<TenantSummary[]>("/dev/my-tenants");
|
||||
return data;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user