132 lines
4.0 KiB
Python
132 lines
4.0 KiB
Python
"""Pydantic 数据模型"""
|
|
|
|
from app.schemas.common import ResponseModel, PaginatedResponse
|
|
from app.schemas.category import CategoryCreate, CategoryUpdate, CategoryResponse
|
|
from app.schemas.material import MaterialCreate, MaterialUpdate, MaterialResponse
|
|
from app.schemas.equipment import EquipmentCreate, EquipmentUpdate, EquipmentResponse
|
|
from app.schemas.staff_level import StaffLevelCreate, StaffLevelUpdate, StaffLevelResponse
|
|
from app.schemas.fixed_cost import FixedCostCreate, FixedCostUpdate, FixedCostResponse
|
|
from app.schemas.project import (
|
|
ProjectCreate, ProjectUpdate, ProjectResponse,
|
|
ProjectListResponse, ProjectQuery
|
|
)
|
|
from app.schemas.project_cost import (
|
|
CostItemCreate, CostItemUpdate, CostItemResponse,
|
|
LaborCostCreate, LaborCostUpdate, LaborCostResponse,
|
|
CalculateCostRequest, CostCalculationResult, CostSummaryResponse,
|
|
ProjectDetailResponse, CostItemType, AllocationMethod
|
|
)
|
|
from app.schemas.competitor import (
|
|
CompetitorCreate, CompetitorUpdate, CompetitorResponse,
|
|
CompetitorPriceCreate, CompetitorPriceUpdate, CompetitorPriceResponse,
|
|
Positioning, PriceSource
|
|
)
|
|
from app.schemas.market import (
|
|
BenchmarkPriceCreate, BenchmarkPriceUpdate, BenchmarkPriceResponse,
|
|
MarketAnalysisRequest, MarketAnalysisResult, MarketAnalysisResponse,
|
|
PriceTier
|
|
)
|
|
from app.schemas.pricing import (
|
|
PricingPlanCreate, PricingPlanUpdate, PricingPlanResponse,
|
|
PricingPlanListResponse, PricingPlanQuery,
|
|
GeneratePricingRequest, GeneratePricingResponse,
|
|
SimulateStrategyRequest, SimulateStrategyResponse,
|
|
StrategyType
|
|
)
|
|
from app.schemas.profit import (
|
|
ProfitSimulationCreate, ProfitSimulationResponse,
|
|
ProfitSimulationListResponse, ProfitSimulationQuery,
|
|
SimulateProfitRequest, SimulateProfitResponse,
|
|
SensitivityAnalysisRequest, SensitivityAnalysisResponse,
|
|
BreakevenRequest, BreakevenResponse,
|
|
PeriodType
|
|
)
|
|
from app.schemas.dashboard import (
|
|
DashboardSummaryResponse, CostTrendResponse, MarketTrendResponse,
|
|
AIUsageStatsResponse
|
|
)
|
|
|
|
__all__ = [
|
|
"ResponseModel",
|
|
"PaginatedResponse",
|
|
"CategoryCreate",
|
|
"CategoryUpdate",
|
|
"CategoryResponse",
|
|
"MaterialCreate",
|
|
"MaterialUpdate",
|
|
"MaterialResponse",
|
|
"EquipmentCreate",
|
|
"EquipmentUpdate",
|
|
"EquipmentResponse",
|
|
"StaffLevelCreate",
|
|
"StaffLevelUpdate",
|
|
"StaffLevelResponse",
|
|
"FixedCostCreate",
|
|
"FixedCostUpdate",
|
|
"FixedCostResponse",
|
|
# Project schemas
|
|
"ProjectCreate",
|
|
"ProjectUpdate",
|
|
"ProjectResponse",
|
|
"ProjectListResponse",
|
|
"ProjectQuery",
|
|
# Project cost schemas
|
|
"CostItemCreate",
|
|
"CostItemUpdate",
|
|
"CostItemResponse",
|
|
"LaborCostCreate",
|
|
"LaborCostUpdate",
|
|
"LaborCostResponse",
|
|
"CalculateCostRequest",
|
|
"CostCalculationResult",
|
|
"CostSummaryResponse",
|
|
"ProjectDetailResponse",
|
|
"CostItemType",
|
|
"AllocationMethod",
|
|
# Competitor schemas
|
|
"CompetitorCreate",
|
|
"CompetitorUpdate",
|
|
"CompetitorResponse",
|
|
"CompetitorPriceCreate",
|
|
"CompetitorPriceUpdate",
|
|
"CompetitorPriceResponse",
|
|
"Positioning",
|
|
"PriceSource",
|
|
# Market schemas
|
|
"BenchmarkPriceCreate",
|
|
"BenchmarkPriceUpdate",
|
|
"BenchmarkPriceResponse",
|
|
"MarketAnalysisRequest",
|
|
"MarketAnalysisResult",
|
|
"MarketAnalysisResponse",
|
|
"PriceTier",
|
|
# Pricing schemas
|
|
"PricingPlanCreate",
|
|
"PricingPlanUpdate",
|
|
"PricingPlanResponse",
|
|
"PricingPlanListResponse",
|
|
"PricingPlanQuery",
|
|
"GeneratePricingRequest",
|
|
"GeneratePricingResponse",
|
|
"SimulateStrategyRequest",
|
|
"SimulateStrategyResponse",
|
|
"StrategyType",
|
|
# Profit simulation schemas
|
|
"ProfitSimulationCreate",
|
|
"ProfitSimulationResponse",
|
|
"ProfitSimulationListResponse",
|
|
"ProfitSimulationQuery",
|
|
"SimulateProfitRequest",
|
|
"SimulateProfitResponse",
|
|
"SensitivityAnalysisRequest",
|
|
"SensitivityAnalysisResponse",
|
|
"BreakevenRequest",
|
|
"BreakevenResponse",
|
|
"PeriodType",
|
|
# Dashboard schemas
|
|
"DashboardSummaryResponse",
|
|
"CostTrendResponse",
|
|
"MarketTrendResponse",
|
|
"AIUsageStatsResponse",
|
|
]
|