forked from baron/baron-sso
테넌트 조회 API 연동
This commit is contained in:
@@ -3,6 +3,7 @@ import apiClient from "../../lib/apiClient";
|
|||||||
export interface Tenant {
|
export interface Tenant {
|
||||||
id: string;
|
id: string;
|
||||||
name: string;
|
name: string;
|
||||||
|
phone?: string;
|
||||||
slug: string;
|
slug: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -10,6 +11,7 @@ export interface UserProfile {
|
|||||||
id: string;
|
id: string;
|
||||||
email: string;
|
email: string;
|
||||||
name: string;
|
name: string;
|
||||||
|
phone?: string;
|
||||||
role: string;
|
role: string;
|
||||||
phone?: string;
|
phone?: string;
|
||||||
companyCode?: string;
|
companyCode?: string;
|
||||||
|
|||||||
@@ -266,3 +266,14 @@ export async function fetchDevAuditLogs(
|
|||||||
);
|
);
|
||||||
return data;
|
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