Files
2026-10-15 20:36:59 +08:00

25 lines
665 B
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
"""通用模块请求模型"""
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)