mirror of https://github.com/jumpserver/jumpserver
perf: 修改命令command input 长度问题 (#7996)
* perf: 修改命令command input max_length 1024 * perf: 修改命令command input 长度问题 * perf: 修改命令command input 长度问题 * perf: 修改命令command input 长度问题 * perf: 修改命令command input 长度问题 Co-authored-by: Jiangjie.Bai <bugatti_it@163.com>pull/7999/head
parent
54d1996507
commit
e7af037513
@ -1,11 +0,0 @@
|
||||
# ~*~ coding: utf-8 ~*~
|
||||
from rest_framework import serializers
|
||||
|
||||
|
||||
class InsecureCommandAlertSerializer(serializers.Serializer):
|
||||
input = serializers.CharField()
|
||||
asset = serializers.CharField()
|
||||
user = serializers.CharField()
|
||||
risk_level = serializers.IntegerField()
|
||||
session = serializers.UUIDField()
|
||||
org_id = serializers.CharField()
|
@ -0,0 +1,10 @@
|
||||
from .base import FakeDataGenerator
|
||||
from terminal.models import Command
|
||||
|
||||
|
||||
class CommandGenerator(FakeDataGenerator):
|
||||
resource = 'command'
|
||||
|
||||
def do_generate(self, batch, batch_size):
|
||||
Command.generate_fake(len(batch), self.org)
|
||||
|
Loading…
Reference in new issue