fix(goctl): Fix issues (#2543)
* fix #2541 * fix #2432 * Fix review comment * foramt code * foramt code
This commit is contained in:
@@ -10,11 +10,16 @@ import (
|
||||
const ModelCustom = `package {{.pkg}}
|
||||
{{if .withCache}}
|
||||
import (
|
||||
"github.com/lib/pq"
|
||||
"github.com/zeromicro/go-zero/core/stores/cache"
|
||||
"github.com/zeromicro/go-zero/core/stores/sqlx"
|
||||
)
|
||||
{{else}}
|
||||
import "github.com/zeromicro/go-zero/core/stores/sqlx"
|
||||
|
||||
import (
|
||||
"github.com/lib/pq"
|
||||
"github.com/zeromicro/go-zero/core/stores/sqlx"
|
||||
)
|
||||
{{end}}
|
||||
var _ {{.upperStartCamelObject}}Model = (*custom{{.upperStartCamelObject}}Model)(nil)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user