from fastapi import APIRouter

from app.core.dependency import DependPermisson, DependWeixinUser

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 .weixin import weixin_router
from .finance_parse import finance_parse_router
from .msg import msg_route_router
from .automation import automation_router

v1_router = APIRouter()

v1_router.include_router(base_router, prefix="/base")
v1_router.include_router(users_router, prefix="/user", dependencies=[DependPermisson])
v1_router.include_router(roles_router, prefix="/role", dependencies=[DependPermisson])
v1_router.include_router(menus_router, prefix="/menu", dependencies=[DependPermisson])
v1_router.include_router(apis_router, prefix="/api", dependencies=[DependPermisson])
v1_router.include_router(depts_router, prefix="/dept", dependencies=[DependPermisson])
v1_router.include_router(auditlog_router, prefix="/auditlog", dependencies=[DependPermisson])
v1_router.include_router(finance_parse_router, prefix="/parse_finance_data", dependencies=[DependPermisson])
v1_router.include_router(weixin_router, prefix='/weixin')
v1_router.include_router(automation_router, prefix='/auto')
v1_router.include_router(msg_route_router, dependencies=[DependWeixinUser])
