退出用户组

This commit is contained in:
苏尹岚
2020-10-22 14:23:26 +08:00
parent 4fc2e9c5df
commit 777bdc6d93
4 changed files with 119 additions and 9 deletions

View File

@@ -251,3 +251,18 @@ func (c *EventController) UpdateMessageGroup() {
return retVal, "", err
})
}
// @Title 退出用户组(踢人)
// @Description 退出用户组(踢人)
// @Param token header string true "认证token"
// @Param groupID formData int true "组号"
// @Param userID formData string true "userID"
// @Success 200 {object} controllers.CallResult
// @Failure 200 {object} controllers.CallResult
// @router /DeleteMessageGroup [delete]
func (c *EventController) DeleteMessageGroup() {
c.callDeleteMessageGroup(func(params *tEventDeleteMessageGroupParams) (retVal interface{}, errCode string, err error) {
errCode, err = event.DeleteMessageGroup(params.Ctx, params.GroupID, params.UserID)
return retVal, errCode, err
})
}