Files
Aislo/A08_Support/A08_Support_Schema.py
T

14 lines
602 B
Python

"""기술지원 문의 요청 데이터 모델."""
from pydantic import BaseModel, EmailStr, Field
class SupportRequestPayload(BaseModel):
"""기술지원 문의 요청"""
name: str = Field(..., min_length=1, max_length=255, description="작성자 이름")
email: EmailStr = Field(..., description="작성자 이메일")
phone: str | None = Field(None, max_length=30, description="작성자 연락처")
subject: str = Field(..., min_length=1, max_length=255, description="문의 제목")
message: str = Field(..., min_length=1, max_length=5000, description="문의 내용")