feat: added minio dependency
This commit is contained in:
@@ -28,6 +28,7 @@ import (
|
||||
"github.com/go-redis/redis/v8"
|
||||
"github.com/jackc/pgx/v5"
|
||||
"github.com/jackc/pgx/v5/pgtype"
|
||||
"github.com/minio/minio-go/v7"
|
||||
"github.com/rafiulgits/go-automapper"
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
@@ -45,10 +46,11 @@ type profileServiceImpl struct {
|
||||
log *zap.Logger
|
||||
dbctx database.DbContext
|
||||
redis *redis.Client
|
||||
minio *minio.Client
|
||||
}
|
||||
|
||||
func NewProfileService(_log *zap.Logger, _dbctx database.DbContext, _redis *redis.Client) ProfileService {
|
||||
return &profileServiceImpl{log: _log, dbctx: _dbctx, redis: _redis}
|
||||
func NewProfileService(_log *zap.Logger, _dbctx database.DbContext, _redis *redis.Client, _minio *minio.Client) ProfileService {
|
||||
return &profileServiceImpl{log: _log, dbctx: _dbctx, redis: _redis, minio: _minio}
|
||||
}
|
||||
|
||||
// XXX: untested
|
||||
|
||||
Reference in New Issue
Block a user