"""公开 OEM 品牌信息(无需鉴权)。""" from fastapi import APIRouter, Path from app.dependencies import DbSession from app.schemas.common import ApiResponse from app.schemas.oem_public import OemPublicBrandingOut from app.services import oem_public as oem_public_service router = APIRouter(prefix="/public/oem-branding", tags=["公开-OEM品牌"]) @router.get("/{oem_id}", response_model=ApiResponse[OemPublicBrandingOut]) async def get_oem_branding_public( db: DbSession, oem_id: int = Path(ge=1, description="OEM 记录 ID"), ) -> ApiResponse[OemPublicBrandingOut]: data = await oem_public_service.get_oem_public_branding(db, oem_id) return ApiResponse(ok=True, message="", data=data)