1
0
forked from baron/baron-sso

내정보 페이지 사용성개선, adminFront user 정보 연동.

This commit is contained in:
Lectom C Han
2026-01-30 13:42:41 +09:00
parent 1cb5115f2a
commit 35552943d7
29 changed files with 1586 additions and 472 deletions

View File

@@ -182,7 +182,7 @@ export type UserListResponse = {
export type UserCreateRequest = {
email: string;
password: string;
password?: string;
name: string;
phone?: string;
role?: string;
@@ -190,6 +190,10 @@ export type UserCreateRequest = {
department?: string;
};
export type UserCreateResponse = UserSummary & {
initialPassword?: string;
};
export type UserUpdateRequest = {
password?: string;
name?: string;
@@ -215,7 +219,7 @@ export async function fetchUser(userId: string) {
}
export async function createUser(payload: UserCreateRequest) {
const { data } = await apiClient.post<UserSummary>(
const { data } = await apiClient.post<UserCreateResponse>(
"/v1/admin/users",
payload,
);