1
This commit is contained in:
24
.vscode/launch.json
vendored
Normal file
24
.vscode/launch.json
vendored
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
{
|
||||||
|
// 使用 IntelliSense 了解相关属性。
|
||||||
|
// 悬停以查看现有属性的描述。
|
||||||
|
// 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
|
||||||
|
"version": "0.2.0",
|
||||||
|
"configurations": [
|
||||||
|
{
|
||||||
|
"name": "Launch Login",
|
||||||
|
"type": "go",
|
||||||
|
"request": "launch",
|
||||||
|
"mode": "auto",
|
||||||
|
"cwd": "${workspaceFolder}",
|
||||||
|
"program": "${workspaceFolder}/login"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Launch Logic",
|
||||||
|
"type": "go",
|
||||||
|
"request": "launch",
|
||||||
|
"mode": "auto",
|
||||||
|
"program": "${fileDirname}logic"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
,
|
||||||
BIN
blazing.exe
BIN
blazing.exe
Binary file not shown.
2
go.mod
2
go.mod
@@ -1,4 +1,4 @@
|
|||||||
module github.com/cool-team-official/cool-admin-go
|
module blazing
|
||||||
|
|
||||||
go 1.18
|
go 1.18
|
||||||
|
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
package packed
|
|
||||||
File diff suppressed because one or more lines are too long
@@ -1,7 +1,7 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
_ "github.com/cool-team-official/cool-admin-go/internal/packed"
|
|
||||||
|
|
||||||
_ "github.com/gogf/gf/contrib/nosql/redis/v2"
|
_ "github.com/gogf/gf/contrib/nosql/redis/v2"
|
||||||
|
|
||||||
@@ -15,15 +15,15 @@ import (
|
|||||||
|
|
||||||
// _ "github.com/cool-team-official/cool-admin-go/contrib/drivers/sqlite"
|
// _ "github.com/cool-team-official/cool-admin-go/contrib/drivers/sqlite"
|
||||||
|
|
||||||
//_ "github.com/cool-team-official/cool-admin-go/contrib/drivers/mysql"
|
_ "github.com/cool-team-official/cool-admin-go/contrib/drivers/mysql"
|
||||||
|
|
||||||
_ "github.com/cool-team-official/cool-admin-go/contrib/drivers/pgsql"
|
//_ "github.com/cool-team-official/cool-admin-go/contrib/drivers/pgsql"
|
||||||
|
|
||||||
_ "github.com/cool-team-official/cool-admin-go/modules"
|
_ "blazing/modules"
|
||||||
|
|
||||||
"github.com/gogf/gf/v2/os/gctx"
|
"github.com/gogf/gf/v2/os/gctx"
|
||||||
|
|
||||||
"github.com/cool-team-official/cool-admin-go/internal/cmd"
|
"blazing/login/internal/cmd"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
@@ -9,29 +9,29 @@ logger:
|
|||||||
stdout: true
|
stdout: true
|
||||||
|
|
||||||
database:
|
database:
|
||||||
default:
|
|
||||||
type: "pgsql"
|
|
||||||
host: "160.251.151.226"
|
|
||||||
port: "5432"
|
|
||||||
user: "qxblog_blazing"
|
|
||||||
pass: "root"
|
|
||||||
name: "qxblog_blazing"
|
|
||||||
debug: true
|
|
||||||
createdAt: "createTime"
|
|
||||||
updatedAt: "updateTime"
|
|
||||||
# default:
|
# default:
|
||||||
# type: "mysql"
|
# type: "pgsql"
|
||||||
# host: "132.232.154.227"
|
# host: "160.251.151.226"
|
||||||
# port: "3306"
|
# port: "5432"
|
||||||
# user: "root"
|
# user: "qxblog_blazing"
|
||||||
# pass: "123456"
|
# pass: "root"
|
||||||
# name: "cooltest"
|
# name: "qxblog_blazing"
|
||||||
# charset: "utf8mb4"
|
|
||||||
# timezone: "Asia/Shanghai"
|
|
||||||
# debug: true
|
# debug: true
|
||||||
# createdAt: "createTime"
|
# createdAt: "createTime"
|
||||||
# updatedAt: "updateTime"
|
# updatedAt: "updateTime"
|
||||||
# deletedAt: "deleteTime"
|
default:
|
||||||
|
type: "mysql"
|
||||||
|
host: "159.75.107.160"
|
||||||
|
port: "3306"
|
||||||
|
user: "blazing"
|
||||||
|
pass: "zjjSrsBMrB5RmjE7"
|
||||||
|
name: "blazing"
|
||||||
|
charset: "utf8mb4"
|
||||||
|
timezone: "Asia/Shanghai"
|
||||||
|
debug: true
|
||||||
|
createdAt: "createTime"
|
||||||
|
updatedAt: "updateTime"
|
||||||
|
deletedAt: "deleteTime"
|
||||||
# baseConfig:
|
# baseConfig:
|
||||||
# type: "sqlite"
|
# type: "sqlite"
|
||||||
# link: "base-config.sqlite"
|
# link: "base-config.sqlite"
|
||||||
|
|||||||
Reference in New Issue
Block a user