feature(1.2.8): 调整 internal 目录结构

This commit is contained in:
新亮
2021-11-21 13:23:27 +08:00
parent 498033753e
commit 63499a432e
159 changed files with 1295 additions and 1810 deletions

View File

@@ -1,24 +1,24 @@
package admin
import (
"github.com/xinliangnote/go-gin-api/internal/repository/mysql"
"net/http"
"github.com/xinliangnote/go-gin-api/internal/api/repository/redis"
"github.com/xinliangnote/go-gin-api/internal/code"
"github.com/xinliangnote/go-gin-api/internal/pkg/core"
"github.com/xinliangnote/go-gin-api/internal/pkg/db"
"github.com/xinliangnote/go-gin-api/internal/repository/redis"
"github.com/xinliangnote/go-gin-api/pkg/errno"
"go.uber.org/zap"
)
type handler struct {
db db.Repo
db mysql.Repo
logger *zap.Logger
cache redis.Repo
}
func New(logger *zap.Logger, db db.Repo, cache redis.Repo) *handler {
func New(logger *zap.Logger, db mysql.Repo, cache redis.Repo) *handler {
return &handler{
logger: logger,
cache: cache,