summaryrefslogtreecommitdiff
path: root/ATRI/plugins/setu/models.py
blob: 48459f0314dd2b26851f74e08e5368045cdf2a94 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
from typing import List
from pydantic import BaseModel


class Urls(BaseModel):
    original: str


class Datum(BaseModel):
    pid: int
    p: int
    uid: int
    title: str
    author: str
    r18: bool
    width: int
    height: int
    tags: List[str]
    ext: str
    aiType: int
    uploadDate: int
    urls: Urls


class LoliconResponse(BaseModel):
    error: str
    data: List[Datum]


class SetuInfo(BaseModel):
    title: str
    pid: int
    url: str