feature(1.2.8): 使用 embed 打包静态资源

- go version 升级为 1.16
- 使用 embed 特性,将静态资源打包进二进制文件
- 优化代码
This commit is contained in:
新亮
2021-11-20 15:01:50 +08:00
parent 9aa0067e07
commit 8ed27cdce1
244 changed files with 2292 additions and 3193 deletions
@@ -2,7 +2,7 @@ package tool_handler
import (
"github.com/xinliangnote/go-gin-api/configs"
"github.com/xinliangnote/go-gin-api/internal/pkg/cache"
"github.com/xinliangnote/go-gin-api/internal/api/repository/redis"
"github.com/xinliangnote/go-gin-api/internal/pkg/core"
"github.com/xinliangnote/go-gin-api/internal/pkg/db"
"github.com/xinliangnote/go-gin-api/pkg/hash"
@@ -59,11 +59,11 @@ type Handler interface {
type handler struct {
logger *zap.Logger
db db.Repo
cache cache.Repo
cache redis.Repo
hashids hash.Hash
}
func New(logger *zap.Logger, db db.Repo, cache cache.Repo) Handler {
func New(logger *zap.Logger, db db.Repo, cache redis.Repo) Handler {
return &handler{
logger: logger,
db: db,