Limit the number of group members for kick/create/invite

This commit is contained in:
skiffer-git
2022-09-09 15:52:47 +08:00
parent 5b399d0d06
commit 98d7c7bb86
6 changed files with 27 additions and 16 deletions
@@ -35,8 +35,6 @@ func InsertIntoGroupMember(toInsertInfo db.GroupMember) error {
}
func BatchInsertIntoGroupMember(toInsertInfoList []*db.GroupMember) error {
//MessageList []*model_struct.LocalChatLog
//return utils.Wrap(d.conn.Create(MessageList).Error, "BatchInsertMessageList failed")
for _, toInsertInfo := range toInsertInfoList {
toInsertInfo.JoinTime = time.Now()
if toInsertInfo.RoleLevel == 0 {