feat: 更新接口默认就是按照字段更新

This commit is contained in:
martsforever
2025-10-14 21:47:09 +08:00
parent e0cad2d212
commit 02ddb27ca8
3 changed files with 9 additions and 2 deletions
+1
View File
@@ -47,6 +47,7 @@ class Settings(BaseSettings):
file_save_path: str = Field(..., env='FILE_SAVE_PATH')
file_public_path: str = Field(..., env='FILE_PUBLIC_PATH')
default_update_by_fields: bool = Field(..., env='DEFAULT_UPDATE_BY_FIELDS')
class Config:
env_file = ".env"