16 lines
386 B
Python
16 lines
386 B
Python
from pydantic_settings import BaseSettings
|
|
|
|
|
|
class Settings(BaseSettings):
|
|
corpid: str = ""
|
|
secret: str = ""
|
|
open_kfid: str = ""
|
|
callback_token: str = ""
|
|
callback_aes_key: str = ""
|
|
database_url: str = "postgresql+asyncpg://postgres:postgres@localhost:5432/wechat_kf"
|
|
|
|
model_config = {"env_file": ".env", "env_file_encoding": "utf-8"}
|
|
|
|
|
|
settings = Settings()
|