Skip to content

Commit

Permalink
fix - go-zero: template
Browse files Browse the repository at this point in the history
  • Loading branch information
hhstore committed Mar 19, 2021
1 parent 6e0bfd1 commit 3d73e14
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package admin

import (
"{{cookiecutter.go_module_name}}/app/basic/demo/internal/domain/{{cookiecutter.app_name}}"
"{{cookiecutter.go_module_name}}/app/basic/demo/internal/domain/demo"
"{{cookiecutter.go_module_name}}/app/basic/demo/proto/config"
)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package inner

import (
"{{cookiecutter.go_module_name}}/app/basic/demo/internal/domain/{{cookiecutter.app_name}}"
"{{cookiecutter.go_module_name}}/app/basic/demo/internal/domain/demo"
"{{cookiecutter.go_module_name}}/app/basic/demo/proto/config"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/better-go/pkg/log"
"github.com/tal-tech/go-zero/core/collection"

"{{cookiecutter.go_module_name}}/app/basic/demo/internal/domain/{{cookiecutter.app_name}}"
"{{cookiecutter.go_module_name}}/app/basic/demo/internal/domain/demo"
"{{cookiecutter.go_module_name}}/app/basic/demo/proto/config"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package outer

import (
"context"
"{{cookiecutter.go_module_name}}/app/basic/demo/internal/domain/{{cookiecutter.app_name}}"
"{{cookiecutter.go_module_name}}/app/basic/demo/internal/domain/demo"
"{{cookiecutter.go_module_name}}/app/basic/demo/proto/config"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package service
import (
"context"

"{{cookiecutter.go_module_name}}/app/basic/demo/internal/domain/{{cookiecutter.app_name}}"
"{{cookiecutter.go_module_name}}/app/basic/demo/internal/domain/demo"
"{{cookiecutter.go_module_name}}/app/basic/demo/proto/api"
"{{cookiecutter.go_module_name}}/app/basic/demo/proto/config"

Expand All @@ -12,12 +12,12 @@ import (

// Service 对应 gRPC API 映射
type Service struct {
Demo *{{cookiecutter.app_name}}.Scope // 推送服务
Demo *demo.Scope // 推送服务
}

func New(cfg *config.Config) *Service {
return &Service{
Demo: {{cookiecutter.app_name}}.NewScope(cfg),
Demo: demo.NewScope(cfg),
}
}

Expand Down

0 comments on commit 3d73e14

Please sign in to comment.