move booking to service layer

This commit is contained in:
Ruidy 2024-09-12 22:18:12 +02:00
parent b073844772
commit 34ce10ff86
No known key found for this signature in database
GPG key ID: E00F51288CB857CC
14 changed files with 6 additions and 6 deletions

View file

@ -9,7 +9,7 @@ import (
"github.com/labstack/echo/v4" "github.com/labstack/echo/v4"
"github.com/labstack/gommon/log" "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 { func handleSync(bs *booking.Service) echo.HandlerFunc {

View file

@ -13,9 +13,9 @@ import (
"github.com/labstack/gommon/log" "github.com/labstack/gommon/log"
u "github.com/rjNemo/underscore" u "github.com/rjNemo/underscore"
"github.com/rjNemo/rentease/internal/booking"
"github.com/rjNemo/rentease/internal/config" "github.com/rjNemo/rentease/internal/config"
"github.com/rjNemo/rentease/internal/constant" "github.com/rjNemo/rentease/internal/constant"
"github.com/rjNemo/rentease/internal/service/booking"
"github.com/rjNemo/rentease/internal/view" "github.com/rjNemo/rentease/internal/view"
myTime "github.com/rjNemo/rentease/pkg/time" myTime "github.com/rjNemo/rentease/pkg/time"
) )

View file

@ -8,8 +8,8 @@ import (
"github.com/labstack/echo/v4" "github.com/labstack/echo/v4"
u "github.com/rjNemo/underscore" u "github.com/rjNemo/underscore"
"github.com/rjNemo/rentease/internal/booking"
"github.com/rjNemo/rentease/internal/config" "github.com/rjNemo/rentease/internal/config"
"github.com/rjNemo/rentease/internal/service/booking"
) )
func handlePdfCreateInvoice(bs *booking.Service, hc *config.Host) echo.HandlerFunc { func handlePdfCreateInvoice(bs *booking.Service, hc *config.Host) echo.HandlerFunc {

View file

@ -10,9 +10,9 @@ import (
"github.com/labstack/echo/v4" "github.com/labstack/echo/v4"
u "github.com/rjNemo/underscore" u "github.com/rjNemo/underscore"
"github.com/rjNemo/rentease/internal/booking"
"github.com/rjNemo/rentease/internal/config" "github.com/rjNemo/rentease/internal/config"
"github.com/rjNemo/rentease/internal/constant" "github.com/rjNemo/rentease/internal/constant"
"github.com/rjNemo/rentease/internal/service/booking"
"github.com/rjNemo/rentease/internal/view" "github.com/rjNemo/rentease/internal/view"
) )

View file

@ -17,9 +17,9 @@ import (
"github.com/labstack/echo/v4" "github.com/labstack/echo/v4"
"github.com/labstack/echo/v4/middleware" "github.com/labstack/echo/v4/middleware"
"github.com/rjNemo/rentease/internal/booking"
"github.com/rjNemo/rentease/internal/config" "github.com/rjNemo/rentease/internal/config"
"github.com/rjNemo/rentease/internal/service/auth" "github.com/rjNemo/rentease/internal/service/auth"
"github.com/rjNemo/rentease/internal/service/booking"
) )
type Server struct { type Server struct {

View file

@ -11,13 +11,13 @@ import (
"github.com/getsentry/sentry-go" "github.com/getsentry/sentry-go"
"github.com/rjNemo/rentease/internal/booking"
"github.com/rjNemo/rentease/internal/config" "github.com/rjNemo/rentease/internal/config"
"github.com/rjNemo/rentease/internal/driver/calendar" "github.com/rjNemo/rentease/internal/driver/calendar"
"github.com/rjNemo/rentease/internal/driver/database" "github.com/rjNemo/rentease/internal/driver/database"
"github.com/rjNemo/rentease/internal/driver/pdf" "github.com/rjNemo/rentease/internal/driver/pdf"
"github.com/rjNemo/rentease/internal/server" "github.com/rjNemo/rentease/internal/server"
"github.com/rjNemo/rentease/internal/service/auth" "github.com/rjNemo/rentease/internal/service/auth"
"github.com/rjNemo/rentease/internal/service/booking"
) )
//go:embed assets //go:embed assets