聊天增加图片功能
This commit is contained in:
@@ -340,7 +340,7 @@ func (h *Handler) send(c *gin.Context, principal Principal) {
|
||||
}
|
||||
var req SendMessageRequest
|
||||
if err := c.ShouldBindJSON(&req); err != nil {
|
||||
response.BadRequest(c, "消息内容不能为空")
|
||||
response.BadRequest(c, "消息格式不正确")
|
||||
return
|
||||
}
|
||||
message, err := h.service.SendMessage(principal, id, req)
|
||||
|
||||
Reference in New Issue
Block a user