Replies: 3 comments 11 replies
-
|
아래와 같은 방법은 어떠신가요??? {
content: {
id: number
title: string
body: string
type: string
},
user: {
name: string
profileImageUrl: string
},
category: {
categoryId: number
color: string
name: string
}
} |
Beta Was this translation helpful? Give feedback.
4 replies
-
|
변수명은 저는 정하기 나름이라 생각해서, 저런 케이스에는 테이블명 + 컬럼명 좋은 것 같습니다. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
들어가는 모든 도메인 명을 붙여서 DTO를 짓기엔 좀 무리가 있고, DTO가 사용되는 목적에 따라 네이밍을 하면 좋을 것 같은데 명확한 기준이 안 떠오르네요. |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
DTO를 만들다보니, 한 DTO에 여러 개의 Table 데이터가 들어가야 하는 경우가 있습니다.
이러한 정보들을 주입할 때 현재 저는

이렇게 Table명 + Column 명으로 작성을 하고 있었는데, 다른 분들의 작성법과 통일을 하면 좋을 것이라고 생각해서 discussion 남겨봅니다.
Beta Was this translation helpful? Give feedback.
All reactions