Merge branch 'main' of http://39.117.244.52:3000/kjs/ERP-node into jskim-node
This commit is contained in:
@@ -81,6 +81,23 @@ export interface ApiResponse<T> {
|
||||
errorCode?: string;
|
||||
}
|
||||
|
||||
export interface PopMenuItem {
|
||||
objid: string;
|
||||
menu_name_kor: string;
|
||||
menu_url: string;
|
||||
menu_desc: string;
|
||||
seq: number;
|
||||
company_code: string;
|
||||
status: string;
|
||||
screenId?: number;
|
||||
}
|
||||
|
||||
export interface PopMenuResponse {
|
||||
parentMenu: PopMenuItem | null;
|
||||
childMenus: PopMenuItem[];
|
||||
landingMenu: PopMenuItem | null;
|
||||
}
|
||||
|
||||
export const menuApi = {
|
||||
// 관리자 메뉴 목록 조회 (좌측 사이드바용 - active만 표시)
|
||||
getAdminMenus: async (): Promise<ApiResponse<MenuItem[]>> => {
|
||||
@@ -96,6 +113,12 @@ export const menuApi = {
|
||||
return response.data;
|
||||
},
|
||||
|
||||
// POP 메뉴 목록 조회 ([POP] 태그 L1 하위 active 메뉴)
|
||||
getPopMenus: async (): Promise<ApiResponse<PopMenuResponse>> => {
|
||||
const response = await apiClient.get("/admin/pop-menus");
|
||||
return response.data;
|
||||
},
|
||||
|
||||
// 관리자 메뉴 목록 조회 (메뉴 관리 화면용 - 모든 상태 표시)
|
||||
getAdminMenusForManagement: async (): Promise<ApiResponse<MenuItem[]>> => {
|
||||
const response = await apiClient.get("/admin/menus", { params: { menuType: "0", includeInactive: "true" } });
|
||||
|
||||
Reference in New Issue
Block a user