first commit
This commit is contained in:
20
gateway/api/v1/internal/logic/group/update_group_name.go
Normal file
20
gateway/api/v1/internal/logic/group/update_group_name.go
Normal file
@@ -0,0 +1,20 @@
|
||||
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) UpdateGroupName(req *types.UpdateGroupNameReq) (*types.UpdateGroupNameResp, error) {
|
||||
_, err := l.svcCtx.GroupClient.UpdateGroupName(l.ctx, &pb.UpdateGroupNameReq{
|
||||
GroupId: req.Id,
|
||||
PersonId: l.getOpe(),
|
||||
Name: req.Name,
|
||||
PublicName: req.PublicName,
|
||||
})
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
return &types.UpdateGroupNameResp{}, nil
|
||||
}
|
||||
Reference in New Issue
Block a user