summaryrefslogtreecommitdiff
path: root/ATRI/plugins/manage/models.py
blob: 91e6f7731369d390526318de1f66618e5c04b68c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
from typing import Dict
from pydantic import BaseModel


class RequestInfo(BaseModel):
    user_id: str
    comment: str
    time: str


class RequestList(BaseModel):
    data: Dict[str, RequestInfo]


class NonebotPluginInfo(BaseModel):
    module_name: str
    project_link: str
    name: str
    desc: str
    author: str
    homepage: str
    tags: list
    is_official: bool