@ -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
}
The note is not visible to the blocked user.