화면관리 수정

This commit is contained in:
kjs
2025-10-13 19:18:01 +09:00
parent 2754be3250
commit dadd49b98f
6 changed files with 228 additions and 67 deletions

View File

@@ -17,23 +17,28 @@ export async function getAdminMenus(
res: Response
): Promise<void> {
try {
logger.info("=== 관리자 메뉴 목록 조회 시작 ===");
logger.info("=== 메뉴 목록 조회 시작 ===");
// 현재 로그인한 사용자의 회사 코드와 로케일 가져오기
const userCompanyCode = req.user?.companyCode || "ILSHIN";
const userLang = (req.query.userLang as string) || "ko";
const menuType = req.query.menuType as string | undefined; // menuType 파라미터 추가
logger.info(`사용자 회사 코드: ${userCompanyCode}`);
logger.info(`사용자 로케일: ${userLang}`);
logger.info(`메뉴 타입: ${menuType || "전체"}`);
const paramMap = {
userCompanyCode,
userLang,
menuType, // menuType 추가
};
const menuList = await AdminService.getAdminMenuList(paramMap);
logger.info(`관리자 메뉴 조회 결과: ${menuList.length}`);
logger.info(
`메뉴 조회 결과: ${menuList.length}개 (타입: ${menuType || "전체"})`
);
if (menuList.length > 0) {
logger.info("첫 번째 메뉴:", menuList[0]);
}