将Config类替换为model_config,使用ConfigDict配置模型 添加field_serializer处理ObjectId序列化 更新PyObjectId验证器以兼容Pydantic v2
Attach a file by drag & drop or click to upload