T11: tags plugin + permissions plugin + entity links backend — 68 tests, 66.61% coverage

This commit is contained in:
leocrm-bot
2026-06-29 14:01:24 +02:00
parent 700b7a71ad
commit 5d1850768a
26 changed files with 2863 additions and 7 deletions
@@ -0,0 +1,22 @@
"""Pydantic schemas for the Entity Links plugin."""
from __future__ import annotations
from pydantic import BaseModel, Field
class EntityLinkRequest(BaseModel):
entity_type: str = Field(..., pattern="^(company|contact)$")
entity_id: str
class EntityLinkResponse(BaseModel):
id: str
file_id: str
entity_type: str
entity_id: str
class FileListResponse(BaseModel):
file_id: str
entity_type: str