"""
用户模块URL配置
- App端接口：/api/v1/auth/*, /api/v1/users/*
- 管理端接口：/api/admin/users/*
"""
from django.urls import path, include
from rest_framework.routers import DefaultRouter
from .views import AuthViewSet, UserViewSet, AdminUserManageViewSet

# App端路由
router = DefaultRouter()
router.register('auth', AuthViewSet, basename='auth')
router.register('users', UserViewSet, basename='users')

urlpatterns = [
    path('', include(router.urls)),
]

# 管理端路由
admin_router = DefaultRouter()
admin_router.register('users', AdminUserManageViewSet, basename='admin-users')

admin_urlpatterns = [
    path('', include(admin_router.urls)),
]

