o2o-negosium-original/backend/services
민헌 1a933409a3 [refactor] backend services/router 정리 — chat 분리·staticmethod 집약·protocol 문서화·테스트 보강
- router: 채팅 라우터/프로토콜을 negotiation/ 에서 chat/ 으로 분리(git mv, URL 유지).
  chat_protocol.py → chat/protocol.py (폴더당 protocol.py convention 복원), router 등록·import 갱신.
- chat_service: 순수 헬퍼/매퍼를 모듈 함수 → 클래스 @staticmethod 로 이동하고 클래스 상단에 집약.
- protocol: Req 모델 + 코드/enum 필드에 Field(description=...) 추가(Swagger 노출),
  Req 문자열 필드에 max_length(DB 컬럼 정합) 추가 → 초과 입력이 DB 오류 대신 422.
- models: updated_at 에 onupdate 추가 → UPDATE 시 자동 갱신(negodata convention 일치).
- tests: negotiation reject e2e 6케이스 + chat 순수 헬퍼 단위 4케이스 추가(45→55 passed).
- enums: 장황한 주석/docstring 축약(코드값 변경 없음).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-25 11:07:54 +09:00
..
agent_client.py [fix] 재협상 가격협상 흐름 정비 — 무한루프·카드 연출·요약카드 2026-06-24 11:52:34 +09:00
auth_service.py feat(backend): 협상 세션 목록 + 참여 기능 2026-06-18 12:32:32 +09:00
chat_service.py [refactor] backend services/router 정리 — chat 분리·staticmethod 집약·protocol 문서화·테스트 보강 2026-06-25 11:07:54 +09:00
negotiation_service.py feat(backend): 협상 거부(reject) 기능 2026-06-18 13:20:29 +09:00