"""
通知模块序列化器
"""
from rest_framework import serializers
from .models import Notification


class NotificationSerializer(serializers.ModelSerializer):
    """通知序列化器"""

    class Meta:
        model = Notification
        fields = ['id', 'type', 'title', 'description', 'content',
                  'image_url', 'is_read', 'created_at']
