查询聊天组
This commit is contained in:
@@ -222,6 +222,21 @@ func (c *EventController) GetMessageGroupByUser() {
|
||||
})
|
||||
}
|
||||
|
||||
// @Title 查询聊天组
|
||||
// @Description 查询聊天组
|
||||
// @Param token header string true "认证token"
|
||||
// @Param groupID query int true "groupID"
|
||||
// @Param isMember query bool true "是否查询组员"
|
||||
// @Success 200 {object} controllers.CallResult
|
||||
// @Failure 200 {object} controllers.CallResult
|
||||
// @router /GetMessageGroups [get]
|
||||
func (c *EventController) GetMessageGroups() {
|
||||
c.callGetMessageGroups(func(params *tEventGetMessageGroupsParams) (retVal interface{}, errCode string, err error) {
|
||||
retVal, err = dao.GetMessageGroups(dao.GetDB(), "", params.GroupID, 0, params.IsMember, "")
|
||||
return retVal, "", err
|
||||
})
|
||||
}
|
||||
|
||||
// @Title 加入用户组
|
||||
// @Description 加入用户组
|
||||
// @Param token header string true "认证token"
|
||||
|
||||
Reference in New Issue
Block a user