feature/core-service-api-structure #3

Merged
aep merged 17 commits from feature/core-service-api-structure into master 2025-08-27 15:11:10 +03:00
13 changed files with 1920 additions and 79 deletions
Showing only changes of commit f99db54c03 - Show all commits

View File

@@ -5,6 +5,7 @@ import (
"strings"
"erp-mvp/core-service/internal/auth"
"github.com/gin-gonic/gin"
"github.com/google/uuid"
)

View File

@@ -5,13 +5,13 @@ import (
"database/sql"
"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/config"
"erp-mvp/core-service/internal/logger"
"erp-mvp/core-service/internal/repository"
"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"
)
@@ -23,15 +23,15 @@ type Server struct {
router *gin.Engine
// Services
authService service.AuthService
locationService service.LocationService
itemService service.ItemService
authService service.AuthService
locationService service.LocationService
itemService service.ItemService
operationsService service.OperationsService
// Handlers
authHandler *handlers.AuthHandler
locationHandler *handlers.LocationHandler
itemHandler *handlers.ItemHandler
authHandler *handlers.AuthHandler
locationHandler *handlers.LocationHandler
itemHandler *handlers.ItemHandler
operationsHandler *handlers.OperationsHandler
// Middleware
@@ -140,7 +140,7 @@ func (s *Server) setupRoutes() {
func (s *Server) healthCheck(c *gin.Context) {
c.JSON(http.StatusOK, gin.H{
"status": "ok",
"status": "ok",
"service": "erp-mvp-core",
})
}

View File

@@ -6,6 +6,7 @@ import (
"fmt"
"erp-mvp/core-service/internal/models"
"github.com/google/uuid"
)

View File

@@ -7,6 +7,7 @@ import (
"fmt"
"erp-mvp/core-service/internal/models"
"github.com/google/uuid"
)

View File

@@ -7,6 +7,7 @@ import (
"fmt"
"erp-mvp/core-service/internal/models"
"github.com/google/uuid"
)