Initial commit: AutonetSellCar platform with deployment system
- Frontend: Next.js 14 with TypeScript - Backend: FastAPI with SQLAlchemy - Agent: Carmodoo sync agent - Deployment: Docker Compose based staging/production setup - Scripts: Automated deployment with rollback support 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
37
backend/app/schemas/settings.py
Normal file
37
backend/app/schemas/settings.py
Normal file
@@ -0,0 +1,37 @@
|
||||
from pydantic import BaseModel
|
||||
from typing import Optional
|
||||
from datetime import datetime
|
||||
|
||||
|
||||
class SystemSettingsUpdate(BaseModel):
|
||||
"""시스템 설정 수정용 스키마"""
|
||||
search_page_size: Optional[int] = None
|
||||
korea_margin_percent: Optional[float] = None
|
||||
mongolia_margin_percent: Optional[float] = None
|
||||
cc_per_usdc: Optional[int] = None
|
||||
cc_per_view: Optional[int] = None
|
||||
cc_signup_bonus: Optional[int] = None
|
||||
cars_per_cc: Optional[int] = None
|
||||
cache_ttl_hours: Optional[int] = None
|
||||
container_logistics_usd: Optional[int] = None
|
||||
shoring_cost_usd: Optional[int] = None
|
||||
|
||||
|
||||
class SystemSettingsResponse(BaseModel):
|
||||
"""시스템 설정 응답 스키마"""
|
||||
id: int
|
||||
search_page_size: int
|
||||
korea_margin_percent: float
|
||||
mongolia_margin_percent: float
|
||||
cc_per_usdc: int
|
||||
cc_per_view: int
|
||||
cc_signup_bonus: int
|
||||
cars_per_cc: int
|
||||
cache_ttl_hours: int
|
||||
container_logistics_usd: int
|
||||
shoring_cost_usd: int
|
||||
created_at: Optional[datetime] = None
|
||||
updated_at: Optional[datetime] = None
|
||||
|
||||
class Config:
|
||||
from_attributes = True
|
||||
Reference in New Issue
Block a user