from fastapi import APIRouter

from app.core.dependency import DependPermission

from .apis import apis_router
from .auditlog import auditlog_router
from .base import base_router
from .depts import depts_router
from .menus import menus_router
from .roles import roles_router
from .users import users_router
from .token import token_router
from .proxy import proxy_router
from .job import job_router
from .stats import stats_router
from .pipeline import pipeline_router
from .keyword import keyword_router
from .cleaning import cleaning_router
from .analytics import router as analytics_router
from .company import company_router


v1_router = APIRouter()

v1_router.include_router(base_router, prefix="/base")
v1_router.include_router(users_router, prefix="/user", dependencies=[DependPermission])
v1_router.include_router(roles_router, prefix="/role", dependencies=[DependPermission])
v1_router.include_router(menus_router, prefix="/menu", dependencies=[DependPermission])
v1_router.include_router(apis_router, prefix="/api", dependencies=[DependPermission])
v1_router.include_router(depts_router, prefix="/dept", dependencies=[DependPermission])
v1_router.include_router(auditlog_router, prefix="/auditlog", dependencies=[DependPermission])
v1_router.include_router(job_router, prefix="/job", tags=["数据入库"])
v1_router.include_router(job_router, prefix="/universal", tags=["通用数据接口"])
v1_router.include_router(token_router, prefix="/token", tags=["Token管理"])
v1_router.include_router(proxy_router, prefix="/proxy", tags=["代理IP管理"])
v1_router.include_router(stats_router, prefix="/stats")
v1_router.include_router(pipeline_router, prefix="/pipeline")
v1_router.include_router(keyword_router, prefix="/keyword")
v1_router.include_router(cleaning_router, prefix="/cleaning", dependencies=[DependPermission])
v1_router.include_router(analytics_router, prefix="/analytics", tags=["数据分析"])
v1_router.include_router(company_router, prefix="/company", tags=["公司搜索"])
