[feat] negodata: 마감 close_reason 개편 + 견적상세 단가조정 스펙트럼

- 마감사유 quotations.close_reason(SMALLINT, 8종) 신설 — 낙찰/재협상3종/유찰4종 구분, 재생성 한도 카운팅. quotation_settings 에 mid_action·over_action·regen_limit(3구간 가격정책) 추가. models.py·enums.py·01-schema.sql·crud·service·테스트 정합.
- 프론트 노출: CloseReason/PriceGateAction 라벨·배지, 목록 마감결과 컬럼, 견적세팅 모달 3구간. orval 생성모델 갱신.
- 견적상세 결과밴드: 목표가→낙찰가→절감 stat 트리오를 단가조정 흐름 스펙트럼(목표가·최저·최고 투찰가)으로 교체. lowestBid/highestBid 는 bid_price 파생(DB 컬럼 아님), 최초가 컬럼 없어 시작앵커=최고 투찰가로 대체. 라벨 방향 값순 번갈아 배치로 겹침 방지.
- 라벨 정정: "단독 낙찰"→"낙찰"(낙찰은 단수), "목표 대비"→"목표가 대비".

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
minaChoiandClaude Opus 4.8 committed 2026-07-03 08:37:40 +09:00
1 parent d0b6e785af
commit e23349c11e
32 files changed
+1087 -325

No files matched your search

@@ -67,6 +67,9 @@ class QuotationSettingService:
target_margin_rate=req.target_margin_rate,
anchoring_value=req.anchoring_value,
card_count=req.card_count,
mid_action=req.mid_action.value,
over_action=req.over_action.value,
regen_limit=req.regen_limit,
)
err_type = await DB_SESSION_MNG.execute_lambda_run(
[quotation_settings.DBType()],
@@ -83,6 +86,11 @@ class QuotationSettingService:
user_uuid = uuid.UUID(user_id)
setting_uuid = uuid.UUID(qt_setting_id)
data = req.model_dump(exclude_unset=True)
# PriceGateAction enum → SMALLINT 코드값으로 변환(모델 컬럼이 int)
for k in ("mid_action", "over_action"):
v = data.get(k)
if v is not None and hasattr(v, "value"):
data[k] = v.value
# 소유권 확인
err_type, _ = await self._fetch_owned(user_uuid, setting_uuid)