chore: 조직도 인터페이스 변경
This commit is contained in:
@@ -112,8 +112,8 @@ export const generateOrganizationTreeData = (
|
||||
): NodeModel<Organization | User>[] => {
|
||||
return organizations.reduce<NodeModel<Organization | User>[]>((acc, org) => {
|
||||
const orgNode: NodeModel<Organization> = {
|
||||
id: org.ognzId,
|
||||
parent: org.upOgnzId ?? 0,
|
||||
id: org.ognzSn,
|
||||
parent: org.upOgnzSn ?? 0,
|
||||
text: org.ognzNm,
|
||||
data: org,
|
||||
droppable: false,
|
||||
@@ -129,7 +129,7 @@ export const generateOrganizationTreeData = (
|
||||
acc.push(
|
||||
...org.users.map((user) => ({
|
||||
id: user.userUnqId,
|
||||
parent: org.ognzId,
|
||||
parent: org.ognzSn,
|
||||
text: user.userNm,
|
||||
data: user,
|
||||
droppable: false,
|
||||
|
||||
@@ -6,8 +6,8 @@ export interface User {
|
||||
}
|
||||
|
||||
export interface Organization {
|
||||
ognzId: string;
|
||||
upOgnzId: string;
|
||||
ognzSn: number;
|
||||
upOgnzSn: number;
|
||||
ognzNm: string;
|
||||
users: User[];
|
||||
children: Organization[];
|
||||
|
||||
Reference in New Issue
Block a user