MrDoc/app_api/serializers_app.py
2020-05-16 21:27:00 +08:00

44 lines
1018 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# coding:utf-8
# @文件: serializers_app.py
# @创建者:州的先生
# #日期2020/5/11
# 博客地址zmister.com
from rest_framework.serializers import ModelSerializer
from app_doc.models import *
# 文集序列化器
class ProjectSerializer(ModelSerializer):
class Meta:
model = Project
fields = ('__all__')
# 文档序列化器
class DocSerializer(ModelSerializer):
class Meta:
model = Doc
fields = ('__all__')
# 文档模板序列化器
class DocTempSerializer(ModelSerializer):
class Meta:
model = DocTemp
fields = ('__all__')
# 图片序列化器
class ImageSerializer(ModelSerializer):
class Meta:
model = Image
fields = ('__all__')
# 图片分组序列化器
class ImageGroupSerializer(ModelSerializer):
class Meta:
model = ImageGroup
fields = ('__all__')
# 附件序列化器
class AttachmentSerializer(ModelSerializer):
class Meta:
model = Attachment
fields = ('__all__')