feat: add new module cmd

This commit is contained in:
Rogee
2024-12-19 19:13:54 +08:00
parent e007535972
commit 50ba1baece
10 changed files with 240 additions and 8 deletions

View File

@@ -0,0 +1,16 @@
package {{.ModuleName}}
import (
log "github.com/sirupsen/logrus"
)
// @provider
type Controller struct {
svc *Service
log *log.Entry `inject:"false"`
}
func (c *Controller) Prepare() error {
c.log = log.WithField("module", "{{.ModuleName}}.Controller")
return nil
}