add
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
"""通用模块请求模型"""
|
||||
from pydantic import BaseModel, Field
|
||||
|
||||
|
||||
class NotificationReadReq(BaseModel):
|
||||
"""标记已读(10.4):ids 与 all 二选一"""
|
||||
|
||||
ids: list[int] | None = None
|
||||
all: bool | None = None
|
||||
|
||||
|
||||
class ReportReq(BaseModel):
|
||||
"""提交举报(10.5)"""
|
||||
|
||||
target_type: int = Field(ge=1, le=2) # 1视频 2评论
|
||||
target_id: int = Field(ge=1)
|
||||
reason_type: int = Field(ge=1, le=5) # 1色情低俗 2暴力血腥 3侵权 4广告营销 5其他
|
||||
remark: str | None = Field(None, max_length=200)
|
||||
|
||||
|
||||
class RedeemReq(BaseModel):
|
||||
"""积分开通会员(7.3)"""
|
||||
|
||||
plan_code: str = Field(min_length=1, max_length=20)
|
||||
Reference in New Issue
Block a user