1
This commit is contained in:
6
.env
6
.env
@@ -1,9 +1,9 @@
|
|||||||
# [Redis]
|
# [Redis]
|
||||||
REDIS_ADDR=127.0.0.1:63791
|
REDIS_ADDR=127.0.0.1:6379
|
||||||
REDIS_PASSWORD=xH5FRfKizaDpJR4H
|
REDIS_PASSWORD=redis_Pa2Y7J
|
||||||
|
|
||||||
# [Mysql]
|
# [Mysql]
|
||||||
DB_DSN=root:root@tcp(localhost:3310)/z_xk?charset=utf8mb4&parseTime=True&loc=Local
|
DB_DSN=root:root@tcp(localhost:3306)/z_xk?charset=utf8mb4&parseTime=True&loc=Local
|
||||||
DB_HOST=127.0.0.1
|
DB_HOST=127.0.0.1
|
||||||
DB_PORT=3306
|
DB_PORT=3306
|
||||||
DB_USER=root
|
DB_USER=root
|
||||||
|
|||||||
5
main.go
5
main.go
@@ -2,8 +2,6 @@ package main
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"flag"
|
"flag"
|
||||||
"gorm.io/driver/mysql"
|
|
||||||
"gorm.io/gorm"
|
|
||||||
"log"
|
"log"
|
||||||
"os"
|
"os"
|
||||||
"runtime/debug"
|
"runtime/debug"
|
||||||
@@ -12,6 +10,9 @@ import (
|
|||||||
"xk-websocket/route"
|
"xk-websocket/route"
|
||||||
"xk-websocket/utils"
|
"xk-websocket/utils"
|
||||||
|
|
||||||
|
"gorm.io/driver/mysql"
|
||||||
|
"gorm.io/gorm"
|
||||||
|
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user