from api.v1.common.tenant_crud_routes import TenantCRUDRoutes
from .dto import ClassificationConceptCreate, ClassificationConceptResponse, ClassificationConceptUpdate
from .service import ClassificationConceptService

router = TenantCRUDRoutes(
    service=ClassificationConceptService,
    create_schema=ClassificationConceptCreate,
    update_schema=ClassificationConceptUpdate,
    response_schema=ClassificationConceptResponse,
    prefix="/classification-concepts",
    tags=["a76.general_catalogs.classification_concepts"],
    resource_name="Classification Concept",
    enable_list=True,
    list_permissions=["cat_classification.view"],
    get_permissions=["cat_classification.view"],
    create_permissions=["cat_classification.create"],
    update_permissions=["cat_classification.edit"],
    delete_permissions=["cat_classification.delete"],
    enable_filters=True,
).router
