feat: add export

This commit is contained in:
XIE7654
2025-10-08 14:46:43 +08:00
parent 1ed02f5f7d
commit 112c0dd3bc
6 changed files with 126 additions and 3 deletions

View File

@@ -1,8 +1,10 @@
from rest_framework import viewsets, status
from rest_framework.response import Response
from utils.export_mixin import ExportMixin
class CustomModelViewSet(viewsets.ModelViewSet):
class CustomModelViewSet(viewsets.ModelViewSet, ExportMixin):
"""
自定义ModelViewSet提供以下增强功能
- 基于动作的序列化器选择