forked from mtusi2026/mtusi2026lab2
21 lines
446 B
Go
21 lines
446 B
Go
package dto
|
|
|
|
import "time"
|
|
|
|
type CreateMessageRequest struct {
|
|
Text string `json:"text"`
|
|
}
|
|
|
|
type MessageResponse struct {
|
|
ID string `json:"id"`
|
|
ChatID string `json:"chat_id"`
|
|
SenderID string `json:"sender_id"`
|
|
Text string `json:"text"`
|
|
CreatedAt time.Time `json:"created_at"`
|
|
}
|
|
|
|
type MessagesPageResponse struct {
|
|
Items []MessageResponse `json:"items"`
|
|
NextCursor *string `json:"next_cursor"`
|
|
}
|