刘涛 8c0a5f489d Initial commit: hulai admin API backend
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-22 22:01:23 +08:00

33 行
667 B
Python

from __future__ import annotations
from pydantic import BaseModel
class ReviewSummarySchema(BaseModel):
total_count: int = 0
approval_rate: str | None = None
keywords: list[str] = []
class ReviewSchema(BaseModel):
nickname: str
travel_date: str | None = None
product_version: str | None = None
screenshot: str | None = None
content: str
scenes: list[str] = []
concerns: list[str] = []
is_visible: bool = True
class ReviewResponse(ReviewSchema):
id: int
sort_order: int = 0
class Config:
from_attributes = True
class ReviewListResponse(BaseModel):
items: list[ReviewResponse]
total: int