move config and constant packages to internal

This commit is contained in:
Ruidy 2024-09-08 21:34:36 +02:00
parent 4768e066e9
commit aa5dd17d07
No known key found for this signature in database
GPG key ID: E00F51288CB857CC
18 changed files with 16 additions and 16 deletions

View file

@ -7,7 +7,7 @@ import (
"gorm.io/gorm"
"github.com/rjNemo/rentease/config"
"github.com/rjNemo/rentease/internal/config"
)
type Booking struct {

View file

@ -13,7 +13,7 @@ import (
"gorm.io/gorm"
"gorm.io/gorm/clause"
"github.com/rjNemo/rentease/config"
"github.com/rjNemo/rentease/internal/config"
)
type Service struct {

View file

@ -12,8 +12,8 @@ import (
"github.com/labstack/gommon/log"
u "github.com/rjNemo/underscore"
"github.com/rjNemo/rentease/config"
"github.com/rjNemo/rentease/internal/booking"
"github.com/rjNemo/rentease/internal/config"
)
type PdfService struct {

View file

@ -7,7 +7,7 @@ import (
"github.com/labstack/echo-contrib/session"
"github.com/labstack/echo/v4"
"github.com/rjNemo/rentease/constant"
"github.com/rjNemo/rentease/internal/constant"
)
func MakeAuthMiddleware() echo.MiddlewareFunc {

View file

@ -7,8 +7,8 @@ import (
"github.com/labstack/echo-contrib/session"
"github.com/labstack/echo/v4"
"github.com/rjNemo/rentease/constant"
"github.com/rjNemo/rentease/internal/auth"
"github.com/rjNemo/rentease/internal/constant"
"github.com/rjNemo/rentease/internal/view"
)

View file

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

View file

@ -8,8 +8,8 @@ import (
"github.com/labstack/echo/v4"
u "github.com/rjNemo/underscore"
"github.com/rjNemo/rentease/config"
"github.com/rjNemo/rentease/internal/booking"
"github.com/rjNemo/rentease/internal/config"
"github.com/rjNemo/rentease/internal/pdf"
)

View file

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

View file

@ -17,10 +17,10 @@ import (
"github.com/labstack/echo/v4"
"github.com/labstack/echo/v4/middleware"
"github.com/rjNemo/rentease/config"
"github.com/rjNemo/rentease/internal/auth"
"github.com/rjNemo/rentease/internal/booking"
"github.com/rjNemo/rentease/internal/calendar"
"github.com/rjNemo/rentease/internal/config"
"github.com/rjNemo/rentease/internal/pdf"
)

View file

@ -1,6 +1,6 @@
package component
import "github.com/rjNemo/rentease/config"
import "github.com/rjNemo/rentease/internal/config"
type RequestBookingViewModel struct {
Item string

View file

@ -8,7 +8,7 @@ package component
import "github.com/a-h/templ"
import templruntime "github.com/a-h/templ/runtime"
import "github.com/rjNemo/rentease/config"
import "github.com/rjNemo/rentease/internal/config"
type RequestBookingViewModel struct {
Item string

View file

@ -2,7 +2,7 @@ package layout
import (
"fmt"
"github.com/rjNemo/rentease/config"
"github.com/rjNemo/rentease/internal/config"
)
type HostViewModel struct {

View file

@ -10,7 +10,7 @@ import templruntime "github.com/a-h/templ/runtime"
import (
"fmt"
"github.com/rjNemo/rentease/config"
"github.com/rjNemo/rentease/internal/config"
)
type HostViewModel struct {

View file

@ -11,10 +11,10 @@ import (
"github.com/getsentry/sentry-go"
"github.com/rjNemo/rentease/config"
"github.com/rjNemo/rentease/internal/auth"
"github.com/rjNemo/rentease/internal/booking"
"github.com/rjNemo/rentease/internal/calendar"
"github.com/rjNemo/rentease/internal/config"
"github.com/rjNemo/rentease/internal/database"
"github.com/rjNemo/rentease/internal/pdf"
"github.com/rjNemo/rentease/internal/server"