Backend (Django 4.2 + DRF): - Admin auth with SimpleJWT - Volcengine API client with HMAC-SHA256 signing - IAM user management (create/sync/import/disable/enable) - Billing query with pagination - Feishu webhook notifications (async) - APScheduler for periodic spending checks - AES-256 encrypted credential storage - API key auth for external system integration Frontend (Vue 3 + Element Plus): - Login page - Dashboard with stats overview - IAM user list with per-user threshold config - Billing view with spending progress bars - Alert history with type filtering - Settings page for global config and Volcengine account management Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
34 lines
1.2 KiB
Python
34 lines
1.2 KiB
Python
from django.urls import path
|
|
from . import views
|
|
|
|
urlpatterns = [
|
|
# Dashboard
|
|
path('dashboard/', views.dashboard_view),
|
|
|
|
# Volcengine account management
|
|
path('volc-accounts/', views.volc_account_view),
|
|
path('volc-accounts/<int:pk>/', views.volc_account_detail_view),
|
|
path('volc-accounts/<int:pk>/test/', views.volc_account_test_view),
|
|
|
|
# IAM user management
|
|
path('iam-users/', views.iam_user_list_view),
|
|
path('iam-users/sync/', views.iam_user_sync_view),
|
|
path('iam-users/import/', views.iam_user_import_view),
|
|
path('iam-users/<int:pk>/', views.iam_user_detail_view),
|
|
path('iam-users/<int:pk>/update/', views.iam_user_update_view),
|
|
path('iam-users/<int:pk>/disable/', views.iam_user_disable_view),
|
|
path('iam-users/<int:pk>/enable/', views.iam_user_enable_view),
|
|
path('iam-users/<int:pk>/policies/', views.iam_user_policies_view),
|
|
|
|
# Billing
|
|
path('billing/overview/', views.spending_overview_view),
|
|
path('billing/refresh/', views.spending_refresh_view),
|
|
path('billing/balance/', views.balance_view),
|
|
|
|
# Global config
|
|
path('config/', views.global_config_view),
|
|
|
|
# Alerts
|
|
path('alerts/', views.alert_list_view),
|
|
]
|