UserAddresDone
Some checks failed
K8S Fission Deployment / Deployment fission functions (push) Failing after 20s

This commit is contained in:
QuangMinh_123
2025-12-11 13:29:03 +00:00
parent 1620f13124
commit 5359f80e3c
10 changed files with 591 additions and 173 deletions

View File

@@ -1,33 +1,18 @@
from pydantic import BaseModel, Field
from typing import Optional
from enum import IntEnum
class TagKind(IntEnum):
ProjectGroup = 1
ProjectData = 2
ProjectMember = 3
ProjectDiscussionTopic = 4
Project = 5
Ticket = 6
class UserAddressRequest(BaseModel):
address: str = Field(..., max_length=255)
area_code: Optional[str] = Field(None, max_length=10)
city_code: Optional[str] = Field(None, max_length=30)
district_code: Optional[str] = Field(None, max_length=30)
is_primary: Optional[bool] = Field(None, description="is primary address ")
class TagRequest(BaseModel):
tag: str = Field(..., max_length=128)
kind: TagKind
ref: Optional[str] = Field(default=None, max_length=36)
primary_color: Optional[str] = Field(default=None, max_length=8)
secondary_color: Optional[str] = Field(default=None, max_length=8)
class TagRequestUpdate(BaseModel):
tag: str = Field(..., max_length=128)
kind: TagKind
ref: Optional[str] = Field(default=None, max_length=36)
primary_color: Optional[str] = Field(default=None, max_length=8)
secondary_color: Optional[str] = Field(default=None, max_length=8)
class TagRefRequest(BaseModel):
ref: str = Field(..., max_length=64)
sub_ref: Optional[str] = Field(default=None, max_length=1024)
class UserAddressUpdateRequest(BaseModel):
address: Optional[str] = Field(..., max_length=255)
area_code: Optional[str] = Field(None, max_length=10)
city_code: Optional[str] = Field(None, max_length=30)
district_code: Optional[str] = Field(None, max_length=30)
is_primary: Optional[bool] = Field(None, description="is primary address ")