删除model
This commit is contained in:
parent
4fcc059dad
commit
e0ce2951b3
|
@ -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)
|
||||
|
|
|
@ -3,8 +3,8 @@ package {{.PackageName}}
|
|||
|
||||
import (
|
||||
"context"
|
||||
"fusen-model/dbutils"
|
||||
"fusen-model/gmodel"
|
||||
"fusen-basic/dbutils"
|
||||
"fusen-basic/gmodel"
|
||||
|
||||
"{{.ProjectName}}/server/config"
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue
Block a user