From b66fab05537d46ce5736d33f1e2b8e3854402b48 Mon Sep 17 00:00:00 2001 From: yuan <964343743@qq.com> Date: Tue, 26 Aug 2025 20:08:16 +0800 Subject: [PATCH] =?UTF-8?q?refactor(cache):=E4=BC=98=E5=8C=96=E7=BC=93?= =?UTF-8?q?=E5=AD=98=E7=9B=91=E6=8E=A7=E4=BF=A1=E6=81=AF=E6=A8=A1=E5=9E=8B?= =?UTF-8?q?=E5=B1=9E=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/app/api/v1/schemas/monitor/cache_schema.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/app/api/v1/schemas/monitor/cache_schema.py b/backend/app/api/v1/schemas/monitor/cache_schema.py index 571152d9..a74c2088 100644 --- a/backend/app/api/v1/schemas/monitor/cache_schema.py +++ b/backend/app/api/v1/schemas/monitor/cache_schema.py @@ -17,7 +17,7 @@ class CacheInfoSchema(BaseModel): """缓存对象信息模型""" model_config = ConfigDict(from_attributes=True) - cache_key: str = Field(default='', description='缓存键名') - cache_name: str = Field(default='', description='缓存名称') + cache_key: str = Field(..., description='缓存键名') + cache_name: str = Field(..., description='缓存名称') cache_value: Any = Field(default=None, description='缓存值') remark: Optional[str] = Field(default=None, description='备注说明')