mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-08-17 13:47:49 +00:00
perf: initial
This commit is contained in:
parent
570566d9dd
commit
c7f91e14e5
@ -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',
|
||||||
|
@ -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
0
apps/reports/__init__.py
Normal file
3
apps/reports/admin.py
Normal file
3
apps/reports/admin.py
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
from django.contrib import admin
|
||||||
|
|
||||||
|
# Register your models here.
|
1
apps/reports/api/__init__.py
Normal file
1
apps/reports/api/__init__.py
Normal file
@ -0,0 +1 @@
|
|||||||
|
from .report import *
|
9
apps/reports/api/report.py
Normal file
9
apps/reports/api/report.py
Normal 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([])
|
0
apps/reports/api/users/__init__.py
Normal file
0
apps/reports/api/users/__init__.py
Normal file
6
apps/reports/apps.py
Normal file
6
apps/reports/apps.py
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
from django.apps import AppConfig
|
||||||
|
|
||||||
|
|
||||||
|
class ReportsConfig(AppConfig):
|
||||||
|
default_auto_field = "django.db.models.BigAutoField"
|
||||||
|
name = "reports"
|
0
apps/reports/migrations/__init__.py
Normal file
0
apps/reports/migrations/__init__.py
Normal file
3
apps/reports/models.py
Normal file
3
apps/reports/models.py
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
from django.db import models
|
||||||
|
|
||||||
|
# Create your models here.
|
3
apps/reports/tests.py
Normal file
3
apps/reports/tests.py
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
from django.test import TestCase
|
||||||
|
|
||||||
|
# Create your tests here.
|
0
apps/reports/urls/__init__.py
Normal file
0
apps/reports/urls/__init__.py
Normal file
9
apps/reports/urls/api_urls.py
Normal file
9
apps/reports/urls/api_urls.py
Normal 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
3
apps/reports/views.py
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
from django.shortcuts import render
|
||||||
|
|
||||||
|
# Create your views here.
|
Loading…
Reference in New Issue
Block a user