Files
bl/login/main.go
昔念 53da82df82 chore(vscode): 更新调试配置并删除无用的 API 代码
- 在 .vscode/launch.json 中添加了新的 Go 调试配置项
- 删除了 blazing/common/api 目录下未使用的 Kick.pb.go 和 Quit.pb.go 文件
2025-07-06 19:31:30 +08:00

47 lines
779 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package main
import (
"fmt"
_ "github.com/gogf/gf/contrib/nosql/redis/v2"
"blazing/common/rpc"
_ "blazing/contrib/drivers/pgsql"
_ "blazing/contrib/files/local"
// Minio按需启用
// _ "blazing/contrib/files/minio"
// 阿里云OSS按需启用
// _ "blazing/contrib/files/oss"
// _ "blazing/contrib/drivers/sqlite"
//_ "blazing/contrib/drivers/mysql"
_ "blazing/modules"
"github.com/gogf/gf/v2/os/gctx"
"blazing/login/internal/cmd"
)
func main() {
cmd.Main.Run(gctx.New())
}
func kick(id int) {
// go Start(cool.Config.Port)
//go rpc()
go func() {
t := rpc.StartClient(0, &struct{}{})
err := t.Kick(1)
fmt.Println(err)
//err := t.Kick(1)
err = t.Kick(10001)
fmt.Println(err)
}()
}