From fd8e55e91abe5cca6df0430a508d02e38c8824c9 Mon Sep 17 00:00:00 2001 From: aaron <> Date: Mon, 6 Jan 2025 00:49:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/models/merchant.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/merchant.py b/app/models/merchant.py index eb29341..5f2ca23 100644 --- a/app/models/merchant.py +++ b/app/models/merchant.py @@ -52,7 +52,7 @@ class MerchantCreate(BaseModel): business_hours: str = Field(..., max_length=100) address: str = Field(..., max_length=200) longitude: float = Field(..., ge=-180, le=180, description="经度") - latitude: float = Field(..., ge=-180, le=180, description="纬度") + latitude: float = Field(..., ge=-90, le=90, description="纬度") phone: str = Field(..., max_length=20, pattern=r'^\d+$') images: List[MerchantImage] = [] @@ -61,7 +61,7 @@ class MerchantUpdate(BaseModel): business_hours: Optional[str] = Field(None, max_length=100) address: Optional[str] = Field(None, max_length=200) longitude: Optional[float] = Field(None, ge=-180, le=180, description="经度") - latitude: Optional[float] = Field(None, ge=-180, le=180, description="纬度") + latitude: Optional[float] = Field(None, ge=-90, le=90, description="纬度") phone: Optional[str] = Field(None, max_length=20, pattern=r'^\d+$') images: Optional[List[MerchantImage]] = None