User list

This commit is contained in:
Eden Kirin
2023-10-25 19:54:21 +02:00
parent 34b2f55cfc
commit b143983d52
10 changed files with 160 additions and 34 deletions

View File

@ -2,6 +2,7 @@ package main
import (
"fmt"
"iris-test/app/repository"
"strconv"
"strings"
"time"
@ -48,5 +49,7 @@ func InitDB() *gorm.DB {
db, _ := DBConn.DB()
db.SetConnMaxIdleTime(CONNECTION_MAX_IDLE_TIME)
repository.Dao = repository.CreateDAO(DBConn)
return DBConn
}