fix: Retrieve the dialogue record list document and confirm the parameters (#2479)
This commit is contained in:
parent
c65ef97301
commit
9d5f9fde62
@ -472,7 +472,7 @@ class ChatRecordSerializer(serializers.Serializer):
|
|||||||
class Query(serializers.Serializer):
|
class Query(serializers.Serializer):
|
||||||
application_id = serializers.UUIDField(required=True)
|
application_id = serializers.UUIDField(required=True)
|
||||||
chat_id = serializers.UUIDField(required=True)
|
chat_id = serializers.UUIDField(required=True)
|
||||||
order_asc = serializers.BooleanField(required=False)
|
order_asc = serializers.BooleanField(required=False, allow_null=True)
|
||||||
|
|
||||||
def list(self, with_valid=True):
|
def list(self, with_valid=True):
|
||||||
if with_valid:
|
if with_valid:
|
||||||
|
|||||||
@ -284,6 +284,11 @@ class ChatRecordApi(ApiMixin):
|
|||||||
type=openapi.TYPE_STRING,
|
type=openapi.TYPE_STRING,
|
||||||
required=True,
|
required=True,
|
||||||
description=_('Conversation ID')),
|
description=_('Conversation ID')),
|
||||||
|
openapi.Parameter(name='order_asc',
|
||||||
|
in_=openapi.IN_QUERY,
|
||||||
|
type=openapi.TYPE_BOOLEAN,
|
||||||
|
required=False,
|
||||||
|
description=_('Is it ascending order')),
|
||||||
]
|
]
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
|||||||
@ -6764,3 +6764,6 @@ msgstr ""
|
|||||||
|
|
||||||
msgid "The network is busy, try again later."
|
msgid "The network is busy, try again later."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
msgid "Is it ascending order"
|
||||||
|
msgstr ""
|
||||||
@ -6902,4 +6902,7 @@ msgid "AI reply: "
|
|||||||
msgstr "AI 回复: "
|
msgstr "AI 回复: "
|
||||||
|
|
||||||
msgid "The network is busy, try again later."
|
msgid "The network is busy, try again later."
|
||||||
msgstr "网络繁忙,请稍后再试。"
|
msgstr "网络繁忙,请稍后再试。"
|
||||||
|
|
||||||
|
msgid "Is it ascending order"
|
||||||
|
msgstr "是否升序"
|
||||||
@ -6914,4 +6914,7 @@ msgid "AI reply: "
|
|||||||
msgstr "AI 回覆: "
|
msgstr "AI 回覆: "
|
||||||
|
|
||||||
msgid "The network is busy, try again later."
|
msgid "The network is busy, try again later."
|
||||||
msgstr "網絡繁忙,請稍後再試。"
|
msgstr "網絡繁忙,請稍後再試。"
|
||||||
|
|
||||||
|
msgid "Is it ascending order"
|
||||||
|
msgstr "是否昇冪"
|
||||||
Loading…
Reference in New Issue
Block a user