style: форматирование кода - убраны лишние пустые строки и исправлены импорты
This commit is contained in:
@@ -5,6 +5,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"erp-mvp/core-service/internal/auth"
|
"erp-mvp/core-service/internal/auth"
|
||||||
|
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -5,13 +5,13 @@ import (
|
|||||||
"database/sql"
|
"database/sql"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
|
"erp-mvp/core-service/internal/api/handlers"
|
||||||
|
"erp-mvp/core-service/internal/api/middleware"
|
||||||
"erp-mvp/core-service/internal/auth"
|
"erp-mvp/core-service/internal/auth"
|
||||||
"erp-mvp/core-service/internal/config"
|
"erp-mvp/core-service/internal/config"
|
||||||
"erp-mvp/core-service/internal/logger"
|
"erp-mvp/core-service/internal/logger"
|
||||||
"erp-mvp/core-service/internal/repository"
|
"erp-mvp/core-service/internal/repository"
|
||||||
"erp-mvp/core-service/internal/service"
|
"erp-mvp/core-service/internal/service"
|
||||||
"erp-mvp/core-service/internal/api/handlers"
|
|
||||||
"erp-mvp/core-service/internal/api/middleware"
|
|
||||||
|
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
)
|
)
|
||||||
@@ -23,15 +23,15 @@ type Server struct {
|
|||||||
router *gin.Engine
|
router *gin.Engine
|
||||||
|
|
||||||
// Services
|
// Services
|
||||||
authService service.AuthService
|
authService service.AuthService
|
||||||
locationService service.LocationService
|
locationService service.LocationService
|
||||||
itemService service.ItemService
|
itemService service.ItemService
|
||||||
operationsService service.OperationsService
|
operationsService service.OperationsService
|
||||||
|
|
||||||
// Handlers
|
// Handlers
|
||||||
authHandler *handlers.AuthHandler
|
authHandler *handlers.AuthHandler
|
||||||
locationHandler *handlers.LocationHandler
|
locationHandler *handlers.LocationHandler
|
||||||
itemHandler *handlers.ItemHandler
|
itemHandler *handlers.ItemHandler
|
||||||
operationsHandler *handlers.OperationsHandler
|
operationsHandler *handlers.OperationsHandler
|
||||||
|
|
||||||
// Middleware
|
// Middleware
|
||||||
@@ -140,7 +140,7 @@ func (s *Server) setupRoutes() {
|
|||||||
|
|
||||||
func (s *Server) healthCheck(c *gin.Context) {
|
func (s *Server) healthCheck(c *gin.Context) {
|
||||||
c.JSON(http.StatusOK, gin.H{
|
c.JSON(http.StatusOK, gin.H{
|
||||||
"status": "ok",
|
"status": "ok",
|
||||||
"service": "erp-mvp-core",
|
"service": "erp-mvp-core",
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"erp-mvp/core-service/internal/models"
|
"erp-mvp/core-service/internal/models"
|
||||||
|
|
||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"erp-mvp/core-service/internal/models"
|
"erp-mvp/core-service/internal/models"
|
||||||
|
|
||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"erp-mvp/core-service/internal/models"
|
"erp-mvp/core-service/internal/models"
|
||||||
|
|
||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user