feat: sidebar 작업
This commit is contained in:
@@ -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,5 +1,5 @@
|
||||
import { ENDPOINT } from "../config";
|
||||
import { client } from "./client";
|
||||
import { ENDPOINT } from "../config";
|
||||
|
||||
export interface IUser {
|
||||
regDt: string;
|
||||
|
||||
Reference in New Issue
Block a user