π§Ό clean: μ½λ μΌκ΄μ± κ°μ #11
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
π¨ ν μ€ν¬
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λ‘ μ²λ¦¬ν΄λ λ¬Έμ μμ κ² κ°λ€κ³ μκ°νλ€.