|
|
|
@ -22,10 +22,17 @@ func (g *Group) getGroupClient() (group.GroupClient, error) {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (g *Group) KickGroupMember(c *gin.Context) {
|
|
|
|
|
var fn = group.GroupClient.KickGroupMember
|
|
|
|
|
api2rpc.New(&apistruct.KickGroupMemberReq{}, &apistruct.KickGroupMemberResp{}, fn).Call(c, g.getGroupClient)
|
|
|
|
|
api2rpc.New(&apistruct.KickGroupMemberReq{}, &apistruct.KickGroupMemberResp{}, group.GroupClient.KickGroupMember).Call(c, g.getGroupClient)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (g *Group) GetGroupMembersInfo(c *gin.Context) {
|
|
|
|
|
api2rpc.New(&apistruct.GetGroupMembersInfoReq{}, &apistruct.GetGroupMembersInfoResp{}, group.GroupClient.GetGroupMembersInfo).Call(c, g.getGroupClient)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//func GetGroupMembersInfo(c *gin.Context) {
|
|
|
|
|
// api2rpc.New(&apistruct.GetGroupMembersInfoReq{}, &apistruct.GetGroupMembersInfoResp{}, group.GroupClient.GetGroupMembersInfo).Call(c, g.getGroupClient)
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
//func New[A, B, C, D any, E any](apiReq *A, apiResp *B, rpc func(client E, ctx context.Context, req *C, options ...grpc.CallOption) (*D, error)) {
|
|
|
|
|
//
|
|
|
|
|
//}
|
|
|
|
|