mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-29 08:37:06 +00:00
[Fix] 修改一些api bug
This commit is contained in:
@@ -6,6 +6,7 @@ from __future__ import absolute_import, unicode_literals
|
||||
|
||||
from rest_framework import generics, viewsets
|
||||
from rest_framework.views import APIView, Response
|
||||
from rest_framework_bulk import BulkModelViewSet
|
||||
|
||||
from . import models, serializers
|
||||
from .hands import IsSuperUserOrAppUser, Terminal, IsAppUser
|
||||
@@ -51,13 +52,3 @@ class CommandLogViewSet(viewsets.ModelViewSet):
|
||||
serializer_class = serializers.CommandLogSerializer
|
||||
permission_classes = (IsSuperUserOrAppUser,)
|
||||
|
||||
|
||||
# class CommandLogTitleApi(APIView):
|
||||
# def get(self, request):
|
||||
# response = [
|
||||
# {"name": "command_no", "title": "ID", "type": "number"},
|
||||
# {"name": "command", "title": "Title", "visible": True, "filterable": True},
|
||||
# {"name": "datetime", "title": "Datetime", "type"},
|
||||
# {"name": "output", "title": "Output", "filterable": True},
|
||||
# ]
|
||||
#
|
Reference in New Issue
Block a user