mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-12-01 09:34:46 +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"
|