UserAddresDone
Some checks failed
K8S Fission Deployment / Deployment fission functions (push) Failing after 20s
Some checks failed
K8S Fission Deployment / Deployment fission functions (push) Failing after 20s
This commit is contained in:
@@ -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 ")
|
||||
|
||||
Reference in New Issue
Block a user