Added WireguardConfigurationInfo

This commit is contained in:
Donald Zou
2025-08-15 11:45:06 +08:00
parent c757cee988
commit 00d11880e8
3 changed files with 52 additions and 3 deletions

View File

@@ -9,6 +9,7 @@ class OverridePeerSettingsClass(BaseModel):
ListenPort: int | str = ''
class PeerGroupsClass(BaseModel):
GroupName: str = ''
Description: str = ''
BackgroundColor: str = ''
Peers: list[str] = []
@@ -20,5 +21,5 @@ class WireguardConfigurationInfo(BaseModel):
if __name__ == '__main__':
d = WireguardConfigurationInfo.model_validate_json("{\"Description\": \"Hi!\"}")
d = WireguardConfigurationInfo.model_validate_json("")
print(d.model_dump())