diff --git a/goutils/proto_build/main.go b/goutils/proto_build/main.go index cef85c7..46d07f1 100644 --- a/goutils/proto_build/main.go +++ b/goutils/proto_build/main.go @@ -194,13 +194,8 @@ func CheckGomodBasicPackage() { content += "\n\nreplace fusen-basic v0.0.0 => gitlab.fusenpack.com/backend/basic v0.0.1" } - if !regexp.MustCompile(`fusen-model `).Match(data) { - isRewrite = true - content += "\n\nreplace fusen-model v0.0.0 => gitlab.fusenpack.com/backend/model v0.0.1" - } - if isRewrite { - log.Println("rewrite go.mod => add ") + log.Println("rewrite go.mod => add ") err = os.WriteFile("./go.mod", []byte(content), 0644) if err != nil { panic(err) diff --git a/goutils/proto_build/tpls/logic_init.tpl b/goutils/proto_build/tpls/logic_init.tpl index 4a177dd..aaeedc6 100644 --- a/goutils/proto_build/tpls/logic_init.tpl +++ b/goutils/proto_build/tpls/logic_init.tpl @@ -3,8 +3,8 @@ package {{.PackageName}} import ( "context" - "fusen-model/dbutils" - "fusen-model/gmodel" + "fusen-basic/dbutils" + "fusen-basic/gmodel" "{{.ProjectName}}/server/config" )