Merge branch 'master' of gitlab.fusenpack.com:backend/proto

This commit is contained in:
menghaiwen@fusen.cn 2023-12-06 18:34:26 +08:00
commit 47317af003
2 changed files with 4 additions and 7 deletions

View File

@ -313,9 +313,10 @@ func ExecCreateAutoLogic(workerSpaceDir string, ServiceName string, genDir, pack
} else {
plist := strings.Split(param, ".")
lowerName := strings.ToLower(plist[len(plist)-1])
p = lowerName[0:3]
if _, ok := dup[p]; ok {
p = lowerName
if strings.Contains(lowerName, "req") {
if _, ok := dup["ctx"]; ok {
p = "req"
}
}
if _, ok := dup[p]; ok {
p = fmt.Sprintf("param%d", i)

View File

@ -10,10 +10,6 @@ import (
"{{.ProjectName}}/server/config"
{{range .LogicDirNames}}
"{{$.ProjectName}}/{{.}}"
{{- end}}
"google.golang.org/grpc"
)