mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-11-25 01:25:04 +08:00
12 lines
288 B
Python
12 lines
288 B
Python
|
from typing import Optional
|
||
|
|
||
|
from pydantic import Field, BaseModel
|
||
|
|
||
|
|
||
|
class Config(BaseModel):
|
||
|
secret: Optional[str] = Field(default=None, alias="ding_secret")
|
||
|
access_token: Optional[str] = Field(default=None, alias="ding_access_token")
|
||
|
|
||
|
class Config:
|
||
|
extra = "ignore"
|