mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 19:59:50 +08:00
41d0a8b295
Co-authored-by: Garfield Dai <dai.hai@foxmail.com>
19 lines
455 B
Python
19 lines
455 B
Python
from flask_restful import fields
|
|
|
|
from libs.helper import TimestampField
|
|
|
|
upload_config_fields = {
|
|
'file_size_limit': fields.Integer,
|
|
'batch_count_limit': fields.Integer,
|
|
'image_file_size_limit': fields.Integer,
|
|
}
|
|
|
|
file_fields = {
|
|
'id': fields.String,
|
|
'name': fields.String,
|
|
'size': fields.Integer,
|
|
'extension': fields.String,
|
|
'mime_type': fields.String,
|
|
'created_by': fields.String,
|
|
'created_at': TimestampField,
|
|
} |