feat: add portal account records

This commit is contained in:
QiuSW
2026-07-03 14:00:00 +08:00
parent 35f4c9c494
commit 4a10c2bb92
18 changed files with 653 additions and 27 deletions
+9 -1
View File
@@ -2,7 +2,13 @@ from allauth.account.views import LoginView, LogoutView, SignupView
from django.urls import path
from django.views.generic import RedirectView
from .views import ApiKeyDeleteView, ApiKeyListCreateView, DashboardView
from .views import (
ApiKeyDeleteView,
ApiKeyListCreateView,
DashboardView,
RechargeRecordListView,
UsageRecordListView,
)
urlpatterns = [
path("", RedirectView.as_view(pattern_name="portal-dashboard", permanent=False), name="portal-home"),
@@ -12,4 +18,6 @@ urlpatterns = [
path("dashboard", DashboardView.as_view(), name="portal-dashboard"),
path("apikeys", ApiKeyListCreateView.as_view(), name="portal-apikeys"),
path("apikeys/<int:pk>/delete", ApiKeyDeleteView.as_view(), name="portal-apikey-delete"),
path("records/recharge", RechargeRecordListView.as_view(), name="portal-recharge-records"),
path("records/usage", UsageRecordListView.as_view(), name="portal-usage-records"),
]