23 lines
499 B
Go
23 lines
499 B
Go
package dto
|
|
|
|
import "time"
|
|
|
|
type ListMessagesRequest struct {
|
|
ChatID string `json:"-"`
|
|
Limit int `json:"-"`
|
|
Cursor string `json:"-"`
|
|
}
|
|
|
|
type ListMessagesResponse struct {
|
|
Items []ListMessagesItem `json:"items"`
|
|
NextCursor *string `json:"next_cursor"`
|
|
}
|
|
|
|
type ListMessagesItem 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"`
|
|
}
|