mirror of
https://github.com/remnawave/python-sdk.git
synced 2026-08-04 14:37:36 +00:00
add platform to HwidDeviceDto
This commit is contained in:
parent
99313e3512
commit
411e926af3
2 changed files with 4 additions and 0 deletions
3
.idea/misc.xml
generated
3
.idea/misc.xml
generated
|
|
@ -1,4 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="Black">
|
||||
<option name="sdkName" value="uv (remawave)" />
|
||||
</component>
|
||||
<component name="ProjectRootManager" version="2" project-jdk-name="uv (remawave)" project-jdk-type="Python SDK" />
|
||||
</project>
|
||||
|
|
@ -24,6 +24,7 @@ class HwidDeviceDto(BaseModel):
|
|||
hwid: str
|
||||
user_uuid: Optional[UUID] = Field(default=None, alias="userUuid") # Ваша версия кидает ошибку на новом API 2.8.0
|
||||
user_id: Optional[int] = Field(default=None, alias="userId") # Добавил для исключения ошибок указанных снизу
|
||||
platform: Optional[str] = None
|
||||
os_version: Optional[str] = Field(None, alias="osVersion")
|
||||
device_model: Optional[str] = Field(None, alias="deviceModel")
|
||||
user_agent: Optional[str] = Field(None, alias="userAgent")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue