MCPcopy
hub / github.com/AstrBotDevs/AstrBot / _payload

Function _payload

astrbot/dashboard/api/auth.py:180–183  ·  view source on GitHub ↗
(payload)

Source from the content-addressed store, hash-verified

178
179
180def _payload(payload) -> dict:
181 if payload is None:
182 return {}
183 return payload.model_dump(exclude_none=True)
184
185
186def _auth_result_payload(result: AuthServiceResult) -> dict:

Callers 4

_loginFunction · 0.85
_setupFunction · 0.85
_totp_setupFunction · 0.85
_update_accountFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected