From 76996f3e9d917aefd95ab40cdc5cf46dda8c91d8 Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Fri, 14 Apr 2023 17:59:55 +0800 Subject: [PATCH] update --- internal/logic/domain/group/model/group.go | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/internal/logic/domain/group/model/group.go b/internal/logic/domain/group/model/group.go index b0f8da3..51a7537 100644 --- a/internal/logic/domain/group/model/group.go +++ b/internal/logic/domain/group/model/group.go @@ -85,14 +85,15 @@ func (g *Group) ToProto() *pb.Group { func CreateGroup(userId, masterId int64, in *pb.CreateGroupReq) *Group { now := time.Now() group := &Group{ - Name: in.Name, - AvatarUrl: in.AvatarUrl, - Introduction: in.Introduction, - MasterId: masterId, - Extra: in.Extra, - Members: make([]GroupUser, 0, len(in.MemberIds)+1), - CreateTime: now, - UpdateTime: now, + Name: in.Name, + AvatarUrl: in.AvatarUrl, + Introduction: in.Introduction, + MasterId: masterId, + Extra: in.Extra, + Members: make([]GroupUser, 0, len(in.MemberIds)+1), + IsAllMemberBanned: 2, + CreateTime: now, + UpdateTime: now, } // 创建者添加为群主