feat(goctl): generate mongo model with cache prefix (#4907)

This commit is contained in:
Haiwei Zhang
2025-06-07 20:54:33 +08:00
committed by GitHub
parent 7969e0ca38
commit 0140fd417b
5 changed files with 9 additions and 1 deletions

View File

@@ -17,6 +17,7 @@ import (
type Context struct {
Types []string
Cache bool
Prefix string
Easy bool
Output string
Cfg *config.Config
@@ -60,6 +61,7 @@ func generateModel(ctx *Context) error {
"Type": stringx.From(t).Title(),
"lowerType": stringx.From(t).Untitle(),
"Cache": ctx.Cache,
"Prefix": ctx.Prefix,
"version": version.BuildVersion,
}, output, true); err != nil {
return err