From d67e1fcd670575a4af3232bbf9ce9486100142d1 Mon Sep 17 00:00:00 2001 From: gahusb Date: Mon, 6 Apr 2026 21:20:41 +0900 Subject: [PATCH] =?UTF-8?q?docs:=20CLAUDE.md=20=EC=8B=A0=EA=B7=9C=20API=20?= =?UTF-8?q?+=20=ED=85=8C=EC=9D=B4=EB=B8=94=20+=20=ED=8C=8C=EC=9D=BC=20?= =?UTF-8?q?=EA=B5=AC=EC=A1=B0=20=EC=97=85=EB=8D=B0=EC=9D=B4=ED=8A=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.6 --- CLAUDE.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/CLAUDE.md b/CLAUDE.md index 386fe8b..61b2a04 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -136,7 +136,7 @@ docker compose up -d ### lotto-lab (backend/) - DB: `/app/data/lotto.db` - 데이터 소스: `smok95.github.io/lotto/results/` -- 파일 구조: `main.py`, `db.py`, `recommender.py`, `collector.py`, `checker.py`, `generator.py`, `analyzer.py`, `utils.py` +- 파일 구조: `main.py`, `db.py`, `recommender.py`, `collector.py`, `checker.py`, `generator.py`, `analyzer.py`, `utils.py`, `purchase_manager.py`, `strategy_evolver.py` **lotto.db 테이블** @@ -147,6 +147,10 @@ docker compose up -d | `simulation_runs` | 시뮬레이션 실행 기록 | | `simulation_candidates` | 시뮬레이션 후보 (점수 5종) | | `best_picks` | 현재 활성 최적 번호 20개 (`is_active` 플래그로 교체) | +| `purchase_history` | 구매 이력 (실제/가상, 번호, 전략 출처, 결과) | +| `strategy_performance` | 전략별 회차 성과 (EMA 입력 데이터) | +| `strategy_weights` | 메타 전략 가중치 (EMA + Softmax) | +| `weekly_reports` | 주간 공략 리포트 캐시 | | `todos` | 투두리스트 (UUID PK) | | `blog_posts` | 블로그 글 (tags: JSON 배열) | @@ -168,6 +172,15 @@ docker compose up -d | GET | `/api/lotto/recommend/heatmap` | 히트맵 기반 추천 | | GET | `/api/lotto/recommend/batch` | 배치 추천 | | POST | `/api/lotto/recommend/batch` | 배치 추천 저장 | +| GET | `/api/lotto/recommend/smart` | 전략 진화 기반 메타 추천 | +| GET | `/api/lotto/purchase` | 구매 이력 조회 (is_real, strategy, draw_no, days 필터) | +| POST | `/api/lotto/purchase` | 구매 등록 (실제/가상, 번호, 전략 출처 포함) | +| PUT | `/api/lotto/purchase/{id}` | 구매 이력 수정 | +| DELETE | `/api/lotto/purchase/{id}` | 구매 이력 삭제 | +| GET | `/api/lotto/purchase/stats` | 구매 통계 (전체/실제/가상 + 전략별) | +| GET | `/api/lotto/strategy/weights` | 전략별 가중치 + 성과 + trend | +| GET | `/api/lotto/strategy/performance` | 전략별 회차 성과 이력 (차트용) | +| POST | `/api/lotto/strategy/evolve` | 수동 가중치 재계산 | | POST | `/api/admin/simulate` | 시뮬레이션 수동 실행 | | POST | `/api/admin/sync_latest` | 당첨번호 수동 동기화 | | GET | `/api/history` | 추천 이력 (limit, offset, favorite, tag, sort) |