Merge branch 'master' of gitlab.fusenpack.com:backend/proto
This commit is contained in:
commit
47317af003
|
@ -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)
|
||||
|
|
|
@ -10,10 +10,6 @@ import (
|
|||
|
||||
"{{.ProjectName}}/server/config"
|
||||
|
||||
{{range .LogicDirNames}}
|
||||
"{{$.ProjectName}}/{{.}}"
|
||||
{{- end}}
|
||||
|
||||
"google.golang.org/grpc"
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user