모든 프로젝트 1차 병합 .
This commit is contained in:
1 parent
b65de5a5f2
commit
c3d96fb7d3
4 files changed
+160
-9
No files matched your search
@@ -11,6 +11,31 @@ from typing import Optional
|
||||
from common.models.gmodel import Res_WebPacketProtocol, WebPacketProtocol
|
||||
|
||||
|
||||
# 협상 결과 요약 카드(summaryRSP/summaryCM)에 표시할 데이터. 종료 스텝에서만 채워 내려간다.
|
||||
# 필드명은 프론트 ChatSummary 타입과 1:1 (item_isVAT 등 camelCase 유지).
|
||||
class ChatSummary(WebPacketProtocol):
|
||||
md_name: str = ""
|
||||
md_email: str = ""
|
||||
md_phone_number: str = ""
|
||||
item_code: str = ""
|
||||
item_name: str = ""
|
||||
item_spec: str = ""
|
||||
item_moq: str = ""
|
||||
item_model: str = ""
|
||||
item_maker: str = ""
|
||||
item_isVAT: bool = False
|
||||
item_lead_time: str = ""
|
||||
item_display_date: str = ""
|
||||
item_delivery_type: str = ""
|
||||
final_price: int = 0
|
||||
nego_start_date: str = ""
|
||||
nego_end_date: str = ""
|
||||
supplier_name: str = ""
|
||||
supplier_manager_name: str = ""
|
||||
supplier_manager_email: str = ""
|
||||
delivery_type: Optional[str] = None
|
||||
|
||||
|
||||
# 말풍선 한 건. sender 는 ChatSender 정수 코드(1=BOT, 2=USER)로 내려가고 라벨 매핑은 프론트가 한다.
|
||||
class ChatMessage(WebPacketProtocol):
|
||||
chat_id: str = ""
|
||||
@@ -25,7 +50,8 @@ class ChatMessage(WebPacketProtocol):
|
||||
next_input_type: Optional[list[str]] = None # 다음 입력 선택지
|
||||
chat_end: bool = False
|
||||
indicator_value: Optional[float] = None # (범위 외 예약) 협상 지표
|
||||
bot_chat_type: Optional[str] = None # (범위 외 예약) indicator|summary 등
|
||||
bot_chat_type: Optional[str] = None # summaryRSP|summaryCM|rejectRSP|rejectCM|indicator
|
||||
summary: Optional[ChatSummary] = None # summaryRSP/summaryCM 일 때만 채워짐
|
||||
|
||||
|
||||
# 채팅 진입 — 상품/견적 메타 + 현재 세션 상태 + 마감 시각(타이머용)
|
||||
|
||||
Reference in new issue
Block a user