addmessagegroup

This commit is contained in:
苏尹岚
2020-10-16 15:56:38 +08:00
parent 8c7806bf3d
commit 3c05d41246
3 changed files with 24 additions and 1 deletions

View File

@@ -84,7 +84,7 @@ func (c *EventController) TestWebsocket() {
}
defer ws.Close()
var (
vendorOrderID = c.GetString("vendorOrderID")
vendorOrderID = c.GetString("userID")
msgMap = make(map[string]*model.ImMessageRecord)
)
//将当前客户端放入map中
@@ -102,6 +102,7 @@ func (c *EventController) TestWebsocket() {
}
}
//找到当前用户的组
c.EnableRender = false //Beego不启用渲染
var s *model.ImMessageRecord
@@ -182,3 +183,15 @@ func (c *EventController) GetImMessageRecord() {
return retVal, "", err
})
}
// @Title 加入用户组
// @Description 加入用户组
// @Param token header string true "认证token"
// @Param groupID formData string true "组号"
// @Param userID formData string true "被邀请人ID"
// @Success 200 {object} controllers.CallResult
// @Failure 200 {object} controllers.CallResult
// @router /AddMessageGroup [post]
func (c *EventController) AddMessageGroup() {
}