From 2055008785ad385bada360c3b83721cde6cbfc80 Mon Sep 17 00:00:00 2001 From: adk23333 <2633103794@qq.com> Date: Tue, 19 Dec 2023 01:39:43 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0config=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- model.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/model.py b/model.py index 85538f9..efb7bbf 100644 --- a/model.py +++ b/model.py @@ -2,7 +2,7 @@ from dataclasses import dataclass from typing import Optional, List, Union, Literal from lib_not_dr.types import Options -from pydantic import BaseModel +from pydantic import BaseModel, Field from socketio import AsyncClient @@ -52,9 +52,9 @@ class Message(Options): class SioConfig(BaseModel): - host: str + host: str = Field(alias='private_key') key: str - self_id: str + self_id: int admin: List[int] validate_host: str client_id: str