perf: initial

repr@dev_v4.10.2-lts@cf241bf9d64a386@change_some_i18n
ibuler 2025-06-09 11:41:47 +08:00
parent 570566d9dd
commit c7f91e14e5
14 changed files with 39 additions and 0 deletions

View File

@ -128,6 +128,7 @@ INSTALLED_APPS = [
'notifications.apps.NotificationsConfig', 'notifications.apps.NotificationsConfig',
'rbac.apps.RBACConfig', 'rbac.apps.RBACConfig',
'labels.apps.LabelsConfig', 'labels.apps.LabelsConfig',
'reports.apps.ReportsConfig',
'rest_framework', 'rest_framework',
'drf_yasg', 'drf_yasg',
'django_cas_ng', 'django_cas_ng',

View File

@ -30,6 +30,7 @@ resource_api = [
path('notifications/', include('notifications.urls.api_urls', namespace='api-notifications')), path('notifications/', include('notifications.urls.api_urls', namespace='api-notifications')),
path('rbac/', include('rbac.urls.api_urls', namespace='api-rbac')), path('rbac/', include('rbac.urls.api_urls', namespace='api-rbac')),
path('labels/', include('labels.urls', namespace='api-label')), path('labels/', include('labels.urls', namespace='api-label')),
path('reports/', include('reports.urls.api_urls', namespace='api-reports')),
] ]
api_v1 = resource_api + [ api_v1 = resource_api + [

0
apps/reports/__init__.py Normal file
View File

3
apps/reports/admin.py Normal file
View File

@ -0,0 +1,3 @@
from django.contrib import admin
# Register your models here.

View File

@ -0,0 +1 @@
from .report import *

View File

@ -0,0 +1,9 @@
from rest_framework.generics import ListAPIView
from rest_framework.response import Response
__all__ = ['ReportViewSet']
class ReportViewSet(ListAPIView):
def list(self, request, *args, **kwargs):
return Response([])

View File

6
apps/reports/apps.py Normal file
View File

@ -0,0 +1,6 @@
from django.apps import AppConfig
class ReportsConfig(AppConfig):
default_auto_field = "django.db.models.BigAutoField"
name = "reports"

View File

3
apps/reports/models.py Normal file
View File

@ -0,0 +1,3 @@
from django.db import models
# Create your models here.

3
apps/reports/tests.py Normal file
View File

@ -0,0 +1,3 @@
from django.test import TestCase
# Create your tests here.

View File

View File

@ -0,0 +1,9 @@
from django.urls import path
from reports import api
app_name = 'reports'
urlpatterns = [
path('reports/', api.ReportViewSet.as_view(), name='report-list'),
]

3
apps/reports/views.py Normal file
View File

@ -0,0 +1,3 @@
from django.shortcuts import render
# Create your views here.