|
|
@@ -248,11 +248,15 @@ func (*LogicExtServer) GetGroup(ctx context.Context, in *pb.GetGroupReq) (*pb.Ge |
|
|
|
return &pb.GetGroupResp{Group: group, MemberType: memberType, GroupUserStatusType: userStatusType}, err |
|
|
|
} |
|
|
|
groupNotice, err := repo.GroupRepo.GetGroupNotice(in.GroupId) |
|
|
|
return &pb.GetGroupResp{Group: group, MemberType: memberType, GroupUserStatusType: userStatusType, GroupNotice: &pb.GroupNotice{ |
|
|
|
Content: groupNotice.Content, |
|
|
|
PublishType: pb.GroupNoticePublishType(groupNotice.PublishType), |
|
|
|
PublishTime: groupNotice.UpdateTime.Format("2006-01-02 15:04:05"), |
|
|
|
}}, err |
|
|
|
var groupNoticeInfo = pb.GroupNotice{} |
|
|
|
if groupNotice == nil { |
|
|
|
groupNoticeInfo = pb.GroupNotice{ |
|
|
|
Content: groupNotice.Content, |
|
|
|
PublishType: pb.GroupNoticePublishType(groupNotice.PublishType), |
|
|
|
PublishTime: groupNotice.UpdateTime.Format("2006-01-02 15:04:05"), |
|
|
|
} |
|
|
|
} |
|
|
|
return &pb.GetGroupResp{Group: group, MemberType: memberType, GroupUserStatusType: userStatusType, GroupNotice: &groupNoticeInfo}, err |
|
|
|
} |
|
|
|
|
|
|
|
// GetGroups 获取用户加入的所有群组 |
|
|
|