# -*- coding: utf-8 -*-
"""
@author   : <NAME>
@github   : https://github.com/tianpangji 
@software : PyCharm 
@file     : ip.py
@create   : 2020/10/4 10:22
"""
from rest_framework import serializers

from monitor.models import IpBlackList


class IpBlackListSerializer(serializers.ModelSerializer):
    """
    IP黑名单管理序列化器
    """
    create_time = serializers.DateTimeField(format='%Y-%m-%d %H:%M:%S', read_only=True)

    class Meta:
        model = IpBlackList
        fields = '__all__'

# -*- coding: utf-8 -*-
"""
@author   : <NAME>
@github   : https://github.com/tianpangji 
@software : PyCharm 
@file     : ip.py
@create   : 2020/10/4 10:22
"""
from rest_framework import serializers

from monitor.models import IpBlackList


class IpBlackListSerializer(serializers.ModelSerializer):
    """
    IP黑名单管理序列化器
    """
    create_time = serializers.DateTimeField(format='%Y-%m-%d %H:%M:%S', read_only=True)

    class Meta:
        model = IpBlackList
        fields = '__all__'

# -*- coding: utf-8 -*- @author   : <NAME> @github   : https://github.com/tianpangji  @software : PyCharm  @file     : ip.py @create   : 2020/10/4 10:22 IP黑名单管理序列化器