Skip to content

Commit

Permalink
✨Feat : 통계 api 기능 serializers I-deul-of-zoo#11
Browse files Browse the repository at this point in the history
  • Loading branch information
airhac committed Oct 30, 2023
1 parent a086007 commit 3a2337a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion posts/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,7 @@ class HashTagSerializer(serializers.ModelSerializer):
class Meta():
model = HashTags
fields = '__all__'


class PostsStatisicsDetailSerializer(serializers.Serializer):
total = serializers.IntegerField()
count_dict = serializers.DictField(child=serializers.IntegerField(), allow_empty=True)

0 comments on commit 3a2337a

Please sign in to comment.