diff --git a/internal/server/handle_api_sync.go b/internal/server/handle_api_sync.go index af363c1..b2ed87e 100644 --- a/internal/server/handle_api_sync.go +++ b/internal/server/handle_api_sync.go @@ -9,7 +9,7 @@ import ( "github.com/labstack/echo/v4" "github.com/labstack/gommon/log" - "github.com/rjNemo/rentease/internal/booking" + "github.com/rjNemo/rentease/internal/service/booking" ) func handleSync(bs *booking.Service) echo.HandlerFunc { diff --git a/internal/server/handle_bookings.go b/internal/server/handle_bookings.go index 5738c8d..f7073f3 100644 --- a/internal/server/handle_bookings.go +++ b/internal/server/handle_bookings.go @@ -13,9 +13,9 @@ import ( "github.com/labstack/gommon/log" u "github.com/rjNemo/underscore" - "github.com/rjNemo/rentease/internal/booking" "github.com/rjNemo/rentease/internal/config" "github.com/rjNemo/rentease/internal/constant" + "github.com/rjNemo/rentease/internal/service/booking" "github.com/rjNemo/rentease/internal/view" myTime "github.com/rjNemo/rentease/pkg/time" ) diff --git a/internal/server/handle_pdf.go b/internal/server/handle_pdf.go index 76acf08..c51f826 100644 --- a/internal/server/handle_pdf.go +++ b/internal/server/handle_pdf.go @@ -8,8 +8,8 @@ import ( "github.com/labstack/echo/v4" u "github.com/rjNemo/underscore" - "github.com/rjNemo/rentease/internal/booking" "github.com/rjNemo/rentease/internal/config" + "github.com/rjNemo/rentease/internal/service/booking" ) func handlePdfCreateInvoice(bs *booking.Service, hc *config.Host) echo.HandlerFunc { diff --git a/internal/server/handle_reports.go b/internal/server/handle_reports.go index 4304bcc..48e7615 100644 --- a/internal/server/handle_reports.go +++ b/internal/server/handle_reports.go @@ -10,9 +10,9 @@ import ( "github.com/labstack/echo/v4" u "github.com/rjNemo/underscore" - "github.com/rjNemo/rentease/internal/booking" "github.com/rjNemo/rentease/internal/config" "github.com/rjNemo/rentease/internal/constant" + "github.com/rjNemo/rentease/internal/service/booking" "github.com/rjNemo/rentease/internal/view" ) diff --git a/internal/server/server.go b/internal/server/server.go index dc7e2ac..2369dc6 100644 --- a/internal/server/server.go +++ b/internal/server/server.go @@ -17,9 +17,9 @@ import ( "github.com/labstack/echo/v4" "github.com/labstack/echo/v4/middleware" - "github.com/rjNemo/rentease/internal/booking" "github.com/rjNemo/rentease/internal/config" "github.com/rjNemo/rentease/internal/service/auth" + "github.com/rjNemo/rentease/internal/service/booking" ) type Server struct { diff --git a/internal/booking/booking_store.go b/internal/service/booking/booking_store.go similarity index 100% rename from internal/booking/booking_store.go rename to internal/service/booking/booking_store.go diff --git a/internal/booking/item.go b/internal/service/booking/item.go similarity index 100% rename from internal/booking/item.go rename to internal/service/booking/item.go diff --git a/internal/booking/item_store.go b/internal/service/booking/item_store.go similarity index 100% rename from internal/booking/item_store.go rename to internal/service/booking/item_store.go diff --git a/internal/booking/line.go b/internal/service/booking/line.go similarity index 100% rename from internal/booking/line.go rename to internal/service/booking/line.go diff --git a/internal/booking/models.go b/internal/service/booking/models.go similarity index 100% rename from internal/booking/models.go rename to internal/service/booking/models.go diff --git a/internal/booking/report.go b/internal/service/booking/report.go similarity index 100% rename from internal/booking/report.go rename to internal/service/booking/report.go diff --git a/internal/booking/service.go b/internal/service/booking/service.go similarity index 100% rename from internal/booking/service.go rename to internal/service/booking/service.go diff --git a/internal/booking/sync.go b/internal/service/booking/sync.go similarity index 100% rename from internal/booking/sync.go rename to internal/service/booking/sync.go diff --git a/main.go b/main.go index 9aa4e0c..1eb7807 100644 --- a/main.go +++ b/main.go @@ -11,13 +11,13 @@ import ( "github.com/getsentry/sentry-go" - "github.com/rjNemo/rentease/internal/booking" "github.com/rjNemo/rentease/internal/config" "github.com/rjNemo/rentease/internal/driver/calendar" "github.com/rjNemo/rentease/internal/driver/database" "github.com/rjNemo/rentease/internal/driver/pdf" "github.com/rjNemo/rentease/internal/server" "github.com/rjNemo/rentease/internal/service/auth" + "github.com/rjNemo/rentease/internal/service/booking" ) //go:embed assets