删除model

This commit is contained in:
huangsimin@fusen.cn 2024-01-16 16:35:50 +08:00
parent 4fcc059dad
commit e0ce2951b3
2 changed files with 3 additions and 8 deletions

View File

@ -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 <fusen-basic> <fusen-model>")
log.Println("rewrite go.mod => add <fusen-basic>")
err = os.WriteFile("./go.mod", []byte(content), 0644)
if err != nil {
panic(err)

View File

@ -3,8 +3,8 @@ package {{.PackageName}}
import (
"context"
"fusen-model/dbutils"
"fusen-model/gmodel"
"fusen-basic/dbutils"
"fusen-basic/gmodel"
"{{.ProjectName}}/server/config"
)