init
This commit is contained in:
17
network/http/web/api/message_dto.go
Normal file
17
network/http/web/api/message_dto.go
Normal file
@@ -0,0 +1,17 @@
|
||||
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"`
|
||||
}
|
||||
Reference in New Issue
Block a user