from api.v1.common.tenant_crud_routes import TenantCRUDRoutes
from .dto import ConceptCreate, ConceptResponse, ConceptUpdate
from .service import ConceptService

router = TenantCRUDRoutes(
    service=ConceptService,
    create_schema=ConceptCreate,
    update_schema=ConceptUpdate,
    response_schema=ConceptResponse,
    prefix="/concepts",
    tags=["a76.general_catalogs.concepts"],
    resource_name="Concept",
    enable_list=True,
    enable_filters=True,
    list_permissions=["cat_concepts.view"],
    get_permissions=["cat_concepts.view"],
    create_permissions=["cat_concepts.create"],
    update_permissions=["cat_concepts.edit"],
    delete_permissions=["cat_concepts.delete"],
).router
