forked from mtusi2026/mtusi2026lab2
15 lines
331 B
Go
15 lines
331 B
Go
package dto
|
|
|
|
type CreateMessageRequest struct {
|
|
ChatID string `json:"-"`
|
|
Text string `json:"text"`
|
|
}
|
|
|
|
type CreateMessageResponse struct {
|
|
ID string `json:"id"`
|
|
ChatID string `json:"chat_id"`
|
|
SenderID string `json:"sender_id"`
|
|
Text string `json:"text"`
|
|
CreatedAt Timestamp `json:"created_at"`
|
|
}
|