Download app/schemas/admin/vod.py from binhugg2/api: direct link, hf CLI and curl.
- Browser
- Download file 613 Bytes
-
https://huggingface.co/spaces/binhugg2/api/resolve/main/app/schemas/admin/vod.py
- Command line
-
hf download hf://spaces/binhugg2/api/app/schemas/admin/vod.py
-
curl -L -o vod.py https://huggingface.co/spaces/binhugg2/api/resolve/main/app/schemas/admin/vod.py
613 Bytes
| from pydantic import BaseModel, Field | |
| class VodUpdateRequest(BaseModel): | |
| name: str | None = Field(None, min_length=1, max_length=200) | |
| sub_name: str | None = Field(None, max_length=500) | |
| category_id: int | None = None | |
| score: float | None = Field(None, ge=0, le=10) | |
| douban_id: int | None = None | |
| blurb: str | None = None | |
| content: str | None = None | |
| is_end: bool | None = None | |
| area: str | None = Field(None, max_length=50) | |
| year: str | None = Field(None, max_length=10) | |
| actor: str | None = Field(None, max_length=2000) | |
| director: str | None = Field(None, max_length=200) | |