fix: model

This commit is contained in:
rogeecn
2025-03-22 19:27:42 +08:00
parent 501af58e66
commit 34c05d52a2
3 changed files with 77 additions and 3 deletions

View File

@@ -1,9 +1,14 @@
package models
import (
"github.com/sirupsen/logrus"
)
// @provider
type {{.CamelTable}}Model struct {
log *logrus.Entry `inject:"false"`
}
func (m *{{.CamelTable}}Model) Prepare() error {
m.log = logrus.WithField("model", "{{.CamelTable}}Model")
return nil
}