mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 11:42:29 +08:00
935e72d449
Signed-off-by: -LAN- <laipz8200@outlook.com> Co-authored-by: Joel <iamjoel007@gmail.com> Co-authored-by: -LAN- <laipz8200@outlook.com>
22 lines
606 B
Python
22 lines
606 B
Python
from flask_restful import fields
|
|
|
|
from libs.helper import TimestampField
|
|
|
|
conversation_variable_fields = {
|
|
'id': fields.String,
|
|
'name': fields.String,
|
|
'value_type': fields.String(attribute='value_type.value'),
|
|
'value': fields.String,
|
|
'description': fields.String,
|
|
'created_at': TimestampField,
|
|
'updated_at': TimestampField,
|
|
}
|
|
|
|
paginated_conversation_variable_fields = {
|
|
'page': fields.Integer,
|
|
'limit': fields.Integer,
|
|
'total': fields.Integer,
|
|
'has_more': fields.Boolean,
|
|
'data': fields.List(fields.Nested(conversation_variable_fields), attribute='data'),
|
|
}
|