刘涛 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

24 行
480 B
Python

from __future__ import annotations
from pydantic import BaseModel
class ContactChannelSchema(BaseModel):
type: str
label: str
value: str | None = None
qr_image: str | None = None
is_primary: bool = False
description: str | None = None
class ContactChannelResponse(ContactChannelSchema):
id: int
sort_order: int = 0
class Config:
from_attributes = True
class ContactConfigSchema(BaseModel):
security_notice: str | None = None