增加cmd命令

This commit is contained in:
ayflying
2025-01-16 15:57:20 +08:00
parent f9bdc0f707
commit d3062a0240
4 changed files with 237 additions and 0 deletions

25
cmd/make/logic Normal file
View File

@@ -0,0 +1,25 @@
package {package}
import (
"game_server/internal/service"
"github.com/gogf/gf/v2/os/gctx"
)
type s{name} struct {
}
var (
ctx = gctx.New()
)
func New() *s{name} {
return &s{name}{}
}
func init() {
service.Register{name}(New())
}
func (s *s{name}) Info() {
}