fix(dto):lab4 allow empty text when attachment_ids present
This commit is contained in:
@@ -5,8 +5,8 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type CreateMessageRequest struct {
|
type CreateMessageRequest struct {
|
||||||
Text string `json:"text" binding:"required,min=1,max=4000"`
|
Text string `json:"text" binding:"max=4000"`
|
||||||
AttachmentIDs []string `json:"attachment_ids"`
|
AttachmentIDs []string `json:"attachment_ids" binding:"max=10,dive,uuid"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type MessageResponse struct {
|
type MessageResponse struct {
|
||||||
|
|||||||
Reference in New Issue
Block a user