Conversation
mishasdk
left a comment
There was a problem hiding this comment.
Еще, кажется будет лучше в некоторых местах рядом в user_email положить поле user_id, что бы не завязываться на email в запросах
| type: "string" | ||
| - in: "query" | ||
| name: "email" | ||
| name: "dialog_id" |
There was a problem hiding this comment.
Думаю, в dialog_history должен передаваться dialog_id, а не email конкретного пользователя. Тогда будет легче групповой чат сделать
| type: "string" | ||
| - in: "query" | ||
| name: "email" | ||
| name: "dialog_id" |
There was a problem hiding this comment.
Тут аналогично, сообщения должны посылаться в dialog
| example: "Hello, John!" | ||
| timestamp: | ||
| type: "integer" | ||
| example: 1616853526 |
There was a problem hiding this comment.
Хотим иметь поле с временем отправки сообщения - добавил
There was a problem hiding this comment.
Кажется в dialogs_info у нас дежит Message, а по логике должен лежать StorageMessage
| example: "Hello, John!" | ||
| timestamp: | ||
| type: "integer" | ||
| example: 1616853526 |
There was a problem hiding this comment.
StoredMessage - возвращаются в dialogs_history, для них тоже хотим знать время
No description provided.