2018-04-06 03:27:52 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
#
|
|
|
|
|
|
|
|
from rest_framework import serializers
|
|
|
|
|
2019-08-21 12:27:21 +00:00
|
|
|
from terminal.models import Session
|
|
|
|
from . import models
|
2018-04-06 03:27:52 +00:00
|
|
|
|
|
|
|
|
|
|
|
class FTPLogSerializer(serializers.ModelSerializer):
|
|
|
|
|
|
|
|
class Meta:
|
2019-08-21 12:27:21 +00:00
|
|
|
model = models.FTPLog
|
|
|
|
fields = '__all__'
|
|
|
|
|
|
|
|
|
|
|
|
class LoginLogSerializer(serializers.ModelSerializer):
|
|
|
|
class Meta:
|
|
|
|
model = models.UserLoginLog
|
|
|
|
fields = '__all__'
|
|
|
|
|
|
|
|
|
|
|
|
class OperateLogSerializer(serializers.ModelSerializer):
|
|
|
|
class Meta:
|
|
|
|
model = models.OperateLog
|
|
|
|
fields = '__all__'
|
|
|
|
|
|
|
|
|
|
|
|
class PasswordChangeLogSerializer(serializers.ModelSerializer):
|
|
|
|
class Meta:
|
|
|
|
model = models.PasswordChangeLog
|
|
|
|
fields = '__all__'
|
|
|
|
|
|
|
|
|
|
|
|
class SessionAuditSerializer(serializers.ModelSerializer):
|
|
|
|
class Meta:
|
|
|
|
model = Session
|
2018-04-06 03:27:52 +00:00
|
|
|
fields = '__all__'
|
2019-09-25 08:31:58 +00:00
|
|
|
|