优化发布等各种状态
This commit is contained in:
@@ -77,8 +77,6 @@ func New(cfg config.Config, deps Dependencies, logger *zap.Logger) *gin.Engine {
|
||||
if deps.DB != nil {
|
||||
listingRepo = listing.NewRepository(deps.DB)
|
||||
}
|
||||
listingService := listing.NewService(listingRepo)
|
||||
listingHandler := listing.NewHandler(listingService)
|
||||
var orderRepo *order.Repository
|
||||
if deps.DB != nil {
|
||||
orderRepo = order.NewRepository(deps.DB)
|
||||
@@ -109,6 +107,8 @@ func New(cfg config.Config, deps Dependencies, logger *zap.Logger) *gin.Engine {
|
||||
}
|
||||
systemConfigService := systemconfig.NewService(systemConfigRepo)
|
||||
systemConfigHandler := systemconfig.NewHandler(systemConfigService)
|
||||
listingService := listing.NewService(listingRepo, systemConfigRepo)
|
||||
listingHandler := listing.NewHandler(listingService)
|
||||
var fileStorage *filemodule.Storage
|
||||
if cfg.Storage.Endpoint != "" && cfg.Storage.Bucket != "" {
|
||||
var err error
|
||||
|
||||
Reference in New Issue
Block a user