Initial commit

This commit is contained in:
Naruse
2024-11-07 23:25:15 +08:00
commit e8e5f3a1a7
246 changed files with 27356 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
# sdkserver/models/granter_login_body.py
from pydantic import BaseModel
from typing import Optional
class GranterLoginBodyData(BaseModel):
uid: str
guest: bool
token: str
class GranterLoginBody(BaseModel):
app_id: int
channel_id: int
data: str # Assuming this is a JSON string that can be parsed
device: str
sign: str
@property
def parsed_data(self) -> GranterLoginBodyData:
"""Parse the data field into a GranterLoginBodyData instance."""
return GranterLoginBodyData.parse_raw(self.data)

View File

@@ -0,0 +1,14 @@
# sdkserver/models/risky_check.py
from pydantic import BaseModel
from typing import Optional
class DataScheme(BaseModel):
id: str
action: str
geetest: Optional[object]
class RiskyCheck(BaseModel):
retcode: int
message: str
data: DataScheme

View File

@@ -0,0 +1,5 @@
from pydantic import BaseModel
class ShieldVerifyBody(BaseModel):
token: str
uid: str