From 4373369133f99f11bca6ef51ffe6c2de147d1f42 Mon Sep 17 00:00:00 2001 From: kent Date: Sun, 21 Dec 2025 16:05:54 +0900 Subject: [PATCH] =?UTF-8?q?docs:=20TODO-004=20=ED=94=84=EB=A1=A0=ED=8A=B8?= =?UTF-8?q?=EC=97=94=EB=93=9C=20client=5Ftype=20=EC=BD=94=EB=93=9C?= =?UTF-8?q?=EA=B0=92=20=EC=A0=84=EC=86=A1=20=EA=B0=9C=EC=84=A0=20=ED=95=AD?= =?UTF-8?q?=EB=AA=A9=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit πŸ€– Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- TODO.md | 41 ++++++++++++++++++++++++++++++++++++++++- 1 file changed, 40 insertions(+), 1 deletion(-) diff --git a/TODO.md b/TODO.md index 50683fd..16c708f 100644 --- a/TODO.md +++ b/TODO.md @@ -1,6 +1,6 @@ # SAM Project TODO -> **λ§ˆμ§€λ§‰ μ—…λ°μ΄νŠΈ**: 2025-12-20 +> **λ§ˆμ§€λ§‰ μ—…λ°μ΄νŠΈ**: 2025-12-21 --- @@ -72,6 +72,45 @@ - `docs/projects/api-integration/phase-3-api-mapping/mapping-matrix.md` - `docs/projects/api-integration/phase-3-api-mapping/gap-analysis.md` +### [TODO-004] ν”„λ‘ νŠΈμ—”λ“œ client_type μ½”λ“œκ°’ 전솑 κ°œμ„  + +**발견일**: 2025-12-21 +**μš°μ„ μˆœμœ„**: 🟑 μ€‘μš” +**μΉ΄ν…Œκ³ λ¦¬**: 데이터 μ •ν•©μ„± + +**ν˜„μž¬ μƒνƒœ**: +- ν”„λ‘ νŠΈμ—”λ“œμ—μ„œ `client_type`에 ν•œκΈ€ 이름(`λ§€μž…`, `맀좜`) 전솑 +- APIλŠ” `common_codes.code` κ°’(`PURCHASE`, `SALES`) κΈ°λŒ€ +- 422 Validation Error λ°œμƒ + +**μž„μ‹œ ν•΄κ²°**: +- API `ClientStoreRequest`, `ClientUpdateRequest`μ—μ„œ `prepareForValidation()` μΆ”κ°€ +- ν•œκΈ€ name β†’ code μžλ™ λ³€ν™˜ 처리 + +**영ꡬ ν•΄κ²° ν•„μš”**: +| 파일 | μˆ˜μ • λ‚΄μš© | +|------|----------| +| `react/src/hooks/useClientList.ts` | client_type 전솑 μ‹œ code κ°’ μ‚¬μš© | +| `react/src/components/clients/*` | νΌμ—μ„œ code/name ꡬ뢄 처리 | + +**μœ νš¨ν•œ μ½”λ“œκ°’**: +| code | name | +|------|------| +| `PURCHASE` | λ§€μž… | +| `SALES` | 맀좜 | +| `BOTH` | λ§€μž…λ§€μΆœ | + +**κ΄€λ ¨ μ—λŸ¬**: +```json +{ + "error": { + "details": { + "client_type": ["μ„ νƒλœ client type은(λŠ”) μœ νš¨ν•˜μ§€ μ•ŠμŠ΅λ‹ˆλ‹€."] + } + } +} +``` + --- ## 🟒 κ°œμ„  (μ΅œμ ν™”)