Commit e56c546b by Yuchao Shen

修改目录层级

parent 21947762
...@@ -3,7 +3,7 @@ package svc ...@@ -3,7 +3,7 @@ package svc
import ( import (
"github.com/go-playground/validator/v10" "github.com/go-playground/validator/v10"
{{.configImport}} {{.configImport}}
valid "user-portrait/userportrait/common/validator" valid "user-portrait/pkg/validator"
) )
type ServiceContext struct { type ServiceContext struct {
......
...@@ -6,8 +6,8 @@ import ( ...@@ -6,8 +6,8 @@ import (
"github.com/zeromicro/go-zero/rest/httpx" "github.com/zeromicro/go-zero/rest/httpx"
{{.ImportPackages}} {{.ImportPackages}}
"user-portrait/userportrait/common/validator" "user-portrait/pkg/validator"
"user-portrait/userportrait/common/errorx" "user-portrait/pkg/errorx"
) )
func {{.HandlerName}}(svcCtx *svc.ServiceContext) http.HandlerFunc { func {{.HandlerName}}(svcCtx *svc.ServiceContext) http.HandlerFunc {
......
...@@ -3,7 +3,7 @@ import ( ...@@ -3,7 +3,7 @@ import (
"errors" "errors"
"fmt" "fmt"
{{if .time}}"time"{{end}} {{if .time}}"time"{{end}}
"user-portrait/userportrait/common/gormc" "user-portrait/pkg/gormc"
"github.com/zeromicro/go-zero/core/stores/cache" "github.com/zeromicro/go-zero/core/stores/cache"
"gorm.io/gorm" "gorm.io/gorm"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment