From 33ff39cdce9965b709d40dd50391ad5bfdb2a6ac Mon Sep 17 00:00:00 2001 From: Ruidy Date: Fri, 16 Feb 2024 15:37:43 +0100 Subject: [PATCH] move booking folder --- internal/{domains => }/booking/models.go | 0 internal/{domains => }/booking/service.go | 0 internal/server/handle_reports.go | 2 +- internal/server/handlers.go | 2 +- internal/server/server.go | 2 +- internal/views/line_item.templ | 2 +- internal/views/line_item_templ.go | 14 +++++++------- main.go | 2 +- 8 files changed, 12 insertions(+), 12 deletions(-) rename internal/{domains => }/booking/models.go (100%) rename internal/{domains => }/booking/service.go (100%) diff --git a/internal/domains/booking/models.go b/internal/booking/models.go similarity index 100% rename from internal/domains/booking/models.go rename to internal/booking/models.go diff --git a/internal/domains/booking/service.go b/internal/booking/service.go similarity index 100% rename from internal/domains/booking/service.go rename to internal/booking/service.go diff --git a/internal/server/handle_reports.go b/internal/server/handle_reports.go index 18b023b..cb6ed85 100644 --- a/internal/server/handle_reports.go +++ b/internal/server/handle_reports.go @@ -9,7 +9,7 @@ import ( "github.com/a-h/templ" "github.com/labstack/echo/v4" "github.com/rjNemo/rentease/constants" - "github.com/rjNemo/rentease/internal/domains/booking" + "github.com/rjNemo/rentease/internal/booking" "github.com/rjNemo/rentease/internal/views" u "github.com/rjNemo/underscore" ) diff --git a/internal/server/handlers.go b/internal/server/handlers.go index 6b2cda3..06e66d6 100644 --- a/internal/server/handlers.go +++ b/internal/server/handlers.go @@ -12,7 +12,7 @@ import ( u "github.com/rjNemo/underscore" "github.com/rjNemo/rentease/constants" - "github.com/rjNemo/rentease/internal/domains/booking" + "github.com/rjNemo/rentease/internal/booking" "github.com/rjNemo/rentease/internal/pdf" "github.com/rjNemo/rentease/internal/views" myTime "github.com/rjNemo/rentease/pkg/time" diff --git a/internal/server/server.go b/internal/server/server.go index 0c1ce42..cc098d7 100644 --- a/internal/server/server.go +++ b/internal/server/server.go @@ -13,7 +13,7 @@ import ( "github.com/labstack/echo/v4" "gorm.io/gorm" - "github.com/rjNemo/rentease/internal/domains/booking" + "github.com/rjNemo/rentease/internal/booking" "github.com/rjNemo/rentease/internal/pdf" ) diff --git a/internal/views/line_item.templ b/internal/views/line_item.templ index e154115..5b80fcc 100644 --- a/internal/views/line_item.templ +++ b/internal/views/line_item.templ @@ -2,7 +2,7 @@ package views import ( "strconv" - "github.com/rjNemo/rentease/internal/domains/booking" + "github.com/rjNemo/rentease/internal/booking" ) templ LineItem(item *booking.Item) { diff --git a/internal/views/line_item_templ.go b/internal/views/line_item_templ.go index edf829c..ce6d4fd 100644 --- a/internal/views/line_item_templ.go +++ b/internal/views/line_item_templ.go @@ -11,7 +11,7 @@ import "io" import "bytes" import ( - "github.com/rjNemo/rentease/internal/domains/booking" + "github.com/rjNemo/rentease/internal/booking" "strconv" ) @@ -28,7 +28,7 @@ func LineItem(item *booking.Item) templ.Component { templ_7745c5c3_Var1 = templ.NopComponent } ctx = templ.ClearChildren(ctx) - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("") + templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 1) if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } @@ -41,7 +41,7 @@ func LineItem(item *booking.Item) templ.Component { if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("") + templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 2) if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } @@ -54,7 +54,7 @@ func LineItem(item *booking.Item) templ.Component { if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("") + templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 3) if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } @@ -67,7 +67,7 @@ func LineItem(item *booking.Item) templ.Component { if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("") + templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 4) if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } @@ -80,7 +80,7 @@ func LineItem(item *booking.Item) templ.Component { if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("") + templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 5) if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } @@ -93,7 +93,7 @@ func LineItem(item *booking.Item) templ.Component { if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("") + templ_7745c5c3_Err = templ.WriteWatchModeString(templ_7745c5c3_Buffer, 6) if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } diff --git a/main.go b/main.go index 6c75154..e1bd469 100644 --- a/main.go +++ b/main.go @@ -8,7 +8,7 @@ import ( "gorm.io/driver/postgres" "gorm.io/gorm" - "github.com/rjNemo/rentease/internal/domains/booking" + "github.com/rjNemo/rentease/internal/booking" "github.com/rjNemo/rentease/internal/server" )