Fix go mod (#1421)

This commit is contained in:
WWater
2023-05-22 23:50:19 +08:00
committed by GitHub
parent 57b4f539f9
commit 4fc90c0168
9 changed files with 88 additions and 67 deletions

View File

@@ -13,7 +13,7 @@ import (
"github.com/flipped-aurora/gin-vue-admin/server/global"
"github.com/flipped-aurora/gin-vue-admin/server/model/system/request"
uuid "github.com/satori/go.uuid"
"github.com/gofrs/uuid"
"gorm.io/driver/mysql"
"gorm.io/gorm"
)
@@ -32,7 +32,7 @@ func (h MysqlInitHandler) WriteConfig(ctx context.Context) error {
}
global.GVA_CONFIG.System.DbType = "mysql"
global.GVA_CONFIG.Mysql = c
global.GVA_CONFIG.JWT.SigningKey = uuid.NewV4().String()
global.GVA_CONFIG.JWT.SigningKey = uuid.Must(uuid.NewV4()).String()
cs := utils.StructToMap(global.GVA_CONFIG)
for k, v := range cs {
global.GVA_VP.Set(k, v)