From 3e5371a3f2aeeb09286567e8c349e1de8a658118 Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Mon, 17 Apr 2023 21:43:31 +0800 Subject: [PATCH] update --- internal/logic/app/group_app.go | 1 + pkg/proto/push.ext.proto | 1 + 2 files changed, 2 insertions(+) diff --git a/internal/logic/app/group_app.go b/internal/logic/app/group_app.go index 41f9fec..4c463c3 100644 --- a/internal/logic/app/group_app.go +++ b/internal/logic/app/group_app.go @@ -27,6 +27,7 @@ func (*groupApp) CreateGroup(ctx context.Context, userId int64, in *pb.CreateGro if err != nil { return 0, err } + err = group.PushAddMember(ctx, userId, in.MemberIds) return group.Id, nil } diff --git a/pkg/proto/push.ext.proto b/pkg/proto/push.ext.proto index 6e7ee30..6cbaf8b 100644 --- a/pkg/proto/push.ext.proto +++ b/pkg/proto/push.ext.proto @@ -13,6 +13,7 @@ enum PushCode { PC_UPDATE_GROUP = 110; // 更新群组 PC_ADD_GROUP_MEMBERS = 120; // 添加群组成员 + PC_REMOVE_GROUP_MEMBER = 121; // 移除群组成员 PC_BANNED_GROUP_MEMBER = 122; // 禁言群组成员