first commit
This commit is contained in:
22
gateway/api/v1/internal/logic/group/group_remove.go
Normal file
22
gateway/api/v1/internal/logic/group/group_remove.go
Normal file
@@ -0,0 +1,22 @@
|
||||
package logic
|
||||
|
||||
import (
|
||||
"gitlab.33.cn/chat/dtalk/gateway/api/v1/internal/types"
|
||||
pb "gitlab.33.cn/chat/dtalk/service/group/api"
|
||||
)
|
||||
|
||||
func (l *GroupLogic) GroupRemove(req *types.GroupRemoveReq) (*types.GroupRemoveResp, error) {
|
||||
resp, err := l.svcCtx.GroupClient.GroupRemove(l.ctx, &pb.GroupRemoveReq{
|
||||
GroupId: req.Id,
|
||||
PersonId: l.getOpe(),
|
||||
MemberIds: req.MemberIds,
|
||||
})
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
return &types.GroupRemoveResp{
|
||||
MemberNum: resp.MemberNum,
|
||||
MemberIds: resp.MemberIds,
|
||||
}, nil
|
||||
}
|
||||
Reference in New Issue
Block a user