19 lines
430 B
Go
19 lines
430 B
Go
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) GroupDisband(req *types.GroupDisbandReq) (*types.GroupDisbandResp, error) {
|
|
_, err := l.svcCtx.GroupClient.GroupDisband(l.ctx, &pb.GroupDisbandReq{
|
|
GroupId: req.Id,
|
|
PersonId: l.getOpe(),
|
|
})
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return &types.GroupDisbandResp{}, nil
|
|
}
|