-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
π§Ό clean: μ½λ μΌκ΄μ± ν₯μ #11
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
νΉν DTOμ μ€μ¨κ±°κ° μ°λλλλ‘ ν΄μ λ¬Έμκ° 2λ² μμ λλ κ±Έ μλ°©νλ κ² μΈμμ μ΄μμ΅λλ€.
μ 체μ μΌλ‘ 무μ¬μ½ μ§λκ°λ λΆλΆλ μΊμΉν΄μ μ μμ
ν΄μ£Όμ κ² κ°μμ.
μκ³ λ§μΌμ ¨μ΅λλ€!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
item, data μ΄λ°κ±° λλΆλΆ μ κ° μΌμν λ° λ°μ±ν΄μΌκ² κ΅°μ γ γ γ
κ³ μ λ§μΌμ ¨μ΅λλ€! π
π¨ ν μ€ν¬
Redis Scan λ°νμ μ μλ‘ λ°κΎΈλ©΄ μ λλ?
λ€μ μμ μν λͺ©λ‘ (PRλ£°μ λ°λΌ λΆλ¦¬)
api-docs.ts
->DTO
λ‘ λ³κ²½DTO
λ‘ λ³κ²½ νλ₯ νλ€λ©΄ λ³κ²½μμ μ¬μ
π μμ λ΄μ©
νλΌλ―Έν° DTO μ μ© νμ¬ κ° κ²μ¦νκ² λ³κ²½
λ³κ²½
Validation μ½λ μ 리, μ κ±°
Controller λ³λ data λ³μ μμ μ μ½λ ν΅μΌ
λ³κ²½
νλΌλ―Έν° λ³λ λ³μ μ κ±°
λΆνμνκ² id λ³μλ₯Ό μμ±νλ ꡬ문 μ κ±°
Request Example λλ―Έ λ°μ΄ν°λ‘ λ³κ²½
λλ―Έ λ°μ΄ν°(ex. test)κ° μλ μμ λ°μ΄ν°(ex. seok3765)κ° λ€μ΄κ° μλ λΆλΆ λ³κ²½
λ³μ μ΄λ¦ result, item, data μ²λΌ μΆμμ μΈ λΆλΆ ꡬ체ν
map, filter κ°μ΄ κ³ μ°¨ ν¨μμμ result, item, dataμ κ°μ΄ μΆμμ μΈ λ³μλͺ μΌλ‘ κ°λ μ±μ΄ λΆνΈνλ λΆλΆ ꡬ체νλ₯Ό ν΅ν΄ κ°μ
Validation Pipe Globalλ‘ λ³κ²½
μΆν 컨νΈλ‘€λ¬μ ν¨μλ₯Ό μΆκ°ν λλ§λ€ UsePipeλ‘ Validationμ μννλλ‘ μ μ΄μΌ νλ€.
μ½λ μ€λ³΅μ΄ λ°μνλ€κ³ μκ°νκ³ , λ²κ±°λ‘μμ΄ λκ»΄μ‘λ€. κ°κ²°νκ² ννμ΄ κ°λ₯ν κ² κ°μλ€.
μ΄μ§νΌ λͺ¨λ Requestλ₯Ό DTOλ‘ μ¬μ©νμκ³ μκΈ°κ° λμκΈ° λλ¬Έμ Global Pipeλ‘ μ²λ¦¬ν΄λ λ¬Έμ μμ κ² κ°λ€κ³ μκ°νλ€.