feat: sidebar 작업

This commit is contained in:
2025-03-18 14:29:40 +09:00
parent 8aa713e285
commit 8f484e8425
15 changed files with 203 additions and 120 deletions
@@ -1,2 +1,3 @@
export * from "./client";
export * from "./menu";
export * from "./user";
@@ -0,0 +1,27 @@
import { client } from "./client";
import { ENDPOINT } from "../config";
export interface MenuItem {
menuCd: number;
menuKornNm: string;
menuEngNm: string;
parentId: number | null;
sortSeq: number;
iconNm?: string;
children: MenuItem[] | null;
levelNo: number;
urlPath: string;
menuLnkgTypeCd: string;
menuLnkgSn: number;
qrcd: string;
useYn: string;
otptYn: string;
requiredUrlPath: boolean;
}
export const getMenuList = async (siteId: string) => {
const response = await client.get<MenuItem[]>(
`${ENDPOINT.CMS_SERVICE.MENU_ROLES}/${siteId}`,
);
return response.data;
};
+1 -1
View File
@@ -1,5 +1,5 @@
import { ENDPOINT } from "../config";
import { client } from "./client";
import { ENDPOINT } from "../config";
export interface IUser {
regDt: string;