PC端
This commit is contained in:
@@ -156,6 +156,22 @@ class ApplicationOut(BaseModel):
|
||||
from_attributes = True
|
||||
|
||||
|
||||
# =======================================================
|
||||
# 公司黑名单
|
||||
# =======================================================
|
||||
class BlacklistIn(BaseModel):
|
||||
company: str = Field(..., min_length=1, max_length=128, description="公司名")
|
||||
|
||||
|
||||
class BlacklistOut(BaseModel):
|
||||
id: int
|
||||
company: str
|
||||
created_at: datetime
|
||||
|
||||
class Config:
|
||||
from_attributes = True
|
||||
|
||||
|
||||
# =======================================================
|
||||
# 通用
|
||||
# =======================================================
|
||||
|
||||
Reference in New Issue
Block a user