18 lines
484 B
Go
18 lines
484 B
Go
package api
|
|
|
|
import "github.com/google/uuid"
|
|
|
|
// DTOs pour Message
|
|
|
|
type CreateMessageRequest struct {
|
|
ChannelID uuid.UUID `json:"channel_id" binding:"required"`
|
|
UserID uuid.UUID `json:"user_id" binding:"required"`
|
|
Content string `json:"content" binding:"required"`
|
|
ReplyToID *uuid.UUID `json:"reply_to_id,omitempty"`
|
|
}
|
|
|
|
type UpdateMessageRequest struct {
|
|
Content string `json:"content" binding:"required"`
|
|
ReplyToID *uuid.UUID `json:"reply_to_id,omitempty"`
|
|
}
|