ForcePilot/backend/package/yuxi/gateway/protocol/channels.py

20 lines
393 B
Python
Raw Normal View History

from __future__ import annotations
from pydantic import BaseModel
class ChannelStatusRequest(BaseModel):
channel_id: str | None = None
account_id: str | None = None
class ChannelStartRequest(BaseModel):
channel_id: str
account_id: str | None = None
class ChannelLogoutRequest(BaseModel):
channel_id: str
account_id: str | None = None
logged_out: bool = True