HimoolERP/apps/goods/schemas.py

19 lines
344 B
Python
Raw Normal View History

2021-11-04 23:49:56 +08:00
from extensions.serializers import *
2021-11-09 23:17:54 +08:00
class NumberResponse(Serializer):
number = CharField(label='编号')
2021-11-04 23:49:56 +08:00
2021-12-20 00:30:37 +08:00
class DownloadResponse(Serializer):
file = FileField(label='Excel文件')
class UploadRequest(Serializer):
file = FileField(label='Excel文件')
2021-11-09 23:17:54 +08:00
__all__ = [
2021-12-20 00:30:37 +08:00
'NumberResponse', 'DownloadResponse', 'UploadRequest',
2021-11-04 23:49:56 +08:00
]