Skip to content

Commit bb022ff

Browse files
committed
fix: Retrieve the dialogue record list document and confirm the parameters
1 parent c65ef97 commit bb022ff

File tree

5 files changed

+17
-3
lines changed

5 files changed

+17
-3
lines changed

apps/application/serializers/chat_serializers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ def one(self, current_role: RoleConstants, with_valid=True):
472472
class Query(serializers.Serializer):
473473
application_id = serializers.UUIDField(required=True)
474474
chat_id = serializers.UUIDField(required=True)
475-
order_asc = serializers.BooleanField(required=False)
475+
order_asc = serializers.BooleanField(required=False, allow_null=True)
476476

477477
def list(self, with_valid=True):
478478
if with_valid:

apps/application/swagger_api/chat_api.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,11 @@ def get_request_params_api():
284284
type=openapi.TYPE_STRING,
285285
required=True,
286286
description=_('Conversation ID')),
287+
openapi.Parameter(name='order_asc',
288+
in_=openapi.IN_QUERY,
289+
type=openapi.TYPE_BOOLEAN,
290+
required=False,
291+
description=_('Is it ascending order')),
287292
]
288293

289294
@staticmethod

apps/locales/en_US/LC_MESSAGES/django.po

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6764,3 +6764,6 @@ msgstr ""
67646764

67656765
msgid "The network is busy, try again later."
67666766
msgstr ""
6767+
6768+
msgid "Is it ascending order"
6769+
msgstr ""

apps/locales/zh_CN/LC_MESSAGES/django.po

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6902,4 +6902,7 @@ msgid "AI reply: "
69026902
msgstr "AI 回复: "
69036903

69046904
msgid "The network is busy, try again later."
6905-
msgstr "网络繁忙,请稍后再试。"
6905+
msgstr "网络繁忙,请稍后再试。"
6906+
6907+
msgid "Is it ascending order"
6908+
msgstr "是否升序"

apps/locales/zh_Hant/LC_MESSAGES/django.po

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6914,4 +6914,7 @@ msgid "AI reply: "
69146914
msgstr "AI 回覆: "
69156915

69166916
msgid "The network is busy, try again later."
6917-
msgstr "網絡繁忙,請稍後再試。"
6917+
msgstr "網絡繁忙,請稍後再試。"
6918+
6919+
msgid "Is it ascending order"
6920+
msgstr "是否昇冪"

0 commit comments

Comments
 (0)