요금제 JSON 데이터에 추가된 imagePath
, icon
, iconPath
필드를 백엔드에서 지원하도록 모든 관련 코드를 수정했습니다.
models/Plan.js
imagePath: { type: String, default: null, trim: true },
icon: { type: String, default: null, trim: true },
iconPath: { type: String, default: null, trim: true }
controllers/planController.js
getPlans()
: 요금제 목록 조회 시 이미지 정보 포함getPlanDetail()
: 상세 조회 및 유사 요금제에 이미지 정보 포함getRecommendedPlans()
: 추천 요금제에 이미지 정보 포함comparePlans()
: 비교 요금제에 이미지 정보 포함scripts/updatePlansWithImages.js
(신규 생성)package.json
"update:images": "node scripts/updatePlansWithImages.js"
모든 코드 수정이 완료되었습니다. 변경사항: