feat: миграция с булевых переменных на status для target_channel
This commit is contained in:
@@ -2,6 +2,8 @@ import uuid
|
||||
|
||||
import pydantic
|
||||
|
||||
from src.domain.target_channel import TargetChannelStatus
|
||||
|
||||
|
||||
class ChannelBotPermissions(pydantic.BaseModel):
|
||||
is_admin: bool
|
||||
@@ -28,6 +30,8 @@ class ConnectTargetChanOutput(pydantic.BaseModel):
|
||||
telegram_id: int
|
||||
title: str
|
||||
username: str | None
|
||||
status: TargetChannelStatus
|
||||
# Deprecated: используйте status. Оставлено для обратной совместимости с фронтендом
|
||||
is_active: bool
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user