add message

This commit is contained in:
苏尹岚
2020-10-22 11:46:13 +08:00
parent b8f18712a9
commit e96431dbe0
3 changed files with 42 additions and 1 deletions

View File

@@ -222,13 +222,14 @@ func (c *EventController) GetMessageGroupByUser() {
// @Title 加入用户组
// @Description 加入用户组
// @Param token header string true "认证token"
// @Param groupID formData string true "组号"
// @Param groupID formData int true "组号"
// @Param userID formData string true "被邀请人ID"
// @Success 200 {object} controllers.CallResult
// @Failure 200 {object} controllers.CallResult
// @router /AddMessageGroup [post]
func (c *EventController) AddMessageGroup() {
c.callAddMessageGroup(func(params *tEventAddMessageGroupParams) (retVal interface{}, errCode string, err error) {
err = event.AddMessageGroup(params.Ctx, params.GroupID, params.UserID)
return retVal, "", err
})
}