Skip to content

Commit

Permalink
refactor: 플랜 생성 요청 네이밍 및 구조 변경 (#81)
Browse files Browse the repository at this point in the history
  • Loading branch information
junseoparkk committed Jan 16, 2025
1 parent 7ef7460 commit 8903958
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 13 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
package kr.wooco.woocobe.plan.ui.web.controller.request

import kr.wooco.woocobe.plan.domain.usecase.AddPlanInput
import java.time.LocalDate

data class CreatePlanRequest(
val title: String,
val description: String,
val primaryRegion: String,
val secondaryRegion: String,
val visitDate: LocalDate,
val placeIds: List<Long>,
val categories: List<String>,
) {
fun toCommand(userId: Long): AddPlanInput =
AddPlanInput(
userId = userId,
title = title,
description = description,
primaryRegion = primaryRegion,
secondaryRegion = secondaryRegion,
visitDate = visitDate,
placeIds = placeIds,
categories = categories,
)
}

0 comments on commit 8903958

Please sign in to comment.