From 80505ca74cd5006e696f695580ec7dbc2f2ab71c Mon Sep 17 00:00:00 2001 From: withchao <993506633@qq.com> Date: Wed, 12 Apr 2023 18:16:02 +0800 Subject: [PATCH] group --- internal/api/group.go | 4 ++++ internal/api/route.go | 1 + 2 files changed, 5 insertions(+) diff --git a/internal/api/group.go b/internal/api/group.go index 875256869..f1070aab5 100644 --- a/internal/api/group.go +++ b/internal/api/group.go @@ -73,6 +73,10 @@ func (o *Group) GetGroupMembersInfo(c *gin.Context) { a2r.Call(group.GroupClient.GetGroupMembersInfo, o.client, c) } +func (o *Group) GetGroupMemberList(c *gin.Context) { + a2r.Call(group.GroupClient.GetGroupMemberList, o.client, c) +} + func (o *Group) InviteUserToGroup(c *gin.Context) { a2r.Call(group.GroupClient.InviteUserToGroup, o.client, c) } diff --git a/internal/api/route.go b/internal/api/route.go index 8d81b955f..67af50e8c 100644 --- a/internal/api/route.go +++ b/internal/api/route.go @@ -80,6 +80,7 @@ func NewGinRouter(zk discoveryregistry.SvcDiscoveryRegistry, rdb redis.Universal groupRouterGroup.POST("/kick_group", g.KickGroupMember) //1 // groupRouterGroup.POST("/get_group_all_member_list", g.GetGroupAllMemberList) //1 groupRouterGroup.POST("/get_group_members_info", g.GetGroupMembersInfo) //1 + groupRouterGroup.POST("/get_group_member_list", g.GetGroupMemberList) //1 groupRouterGroup.POST("/invite_user_to_group", g.InviteUserToGroup) //1 groupRouterGroup.POST("/get_joined_group_list", g.GetJoinedGroupList) groupRouterGroup.POST("/dismiss_group", g.DismissGroup) //