Update import paths

This commit is contained in:
2025-10-23 19:51:28 +01:00
parent 21ebc9c34b
commit b098915ab9
44 changed files with 113 additions and 111 deletions

View File

@@ -6,13 +6,13 @@ import (
"net/http"
"time"
httpHelpers "synlotto-website/helpers/http"
securityHelpers "synlotto-website/helpers/security"
templateHelpers "synlotto-website/helpers/template"
httpHelpers "synlotto-website/internal/helpers/http"
securityHelpers "synlotto-website/internal/helpers/security"
templateHelpers "synlotto-website/internal/helpers/template"
"synlotto-website/logging"
"synlotto-website/models"
"synlotto-website/storage"
"synlotto-website/internal/logging"
"synlotto-website/internal/models"
"synlotto-website/internal/storage"
"github.com/gorilla/csrf"
)

View File

@@ -5,10 +5,10 @@ import (
"log"
"net/http"
templateHelpers "synlotto-website/helpers/template"
templateHelpers "synlotto-website/internal/helpers/template"
"synlotto-website/middleware"
"synlotto-website/models"
"synlotto-website/internal/http/middleware"
"synlotto-website/internal/models"
)
type AdminLogEntry struct {

View File

@@ -5,12 +5,12 @@ import (
"log"
"net/http"
httpHelpers "synlotto-website/helpers/http"
securityHelpers "synlotto-website/helpers/security"
templateHelpers "synlotto-website/helpers/template"
httpHelpers "synlotto-website/internal/helpers/http"
securityHelpers "synlotto-website/internal/helpers/security"
templateHelpers "synlotto-website/internal/helpers/template"
"synlotto-website/models"
"synlotto-website/storage"
"synlotto-website/internal/models"
"synlotto-website/internal/storage"
)
var (

View File

@@ -5,10 +5,10 @@ import (
"log"
"net/http"
httpHelpers "synlotto-website/helpers/http"
templateHelpers "synlotto-website/helpers/template"
httpHelpers "synlotto-website/internal/helpers/http"
templateHelpers "synlotto-website/internal/helpers/template"
"synlotto-website/models"
"synlotto-website/internal/models"
)
func NewDrawHandler(db *sql.DB) http.HandlerFunc {

View File

@@ -8,10 +8,10 @@ import (
"net/url"
"strconv"
templateHelpers "synlotto-website/helpers/template"
templateHelpers "synlotto-website/internal/helpers/template"
services "synlotto-website/services/tickets"
"synlotto-website/models"
"synlotto-website/internal/models"
)
func AdminTriggersHandler(db *sql.DB) http.HandlerFunc {

View File

@@ -6,10 +6,10 @@ import (
"net/http"
"strconv"
httpHelpers "synlotto-website/helpers/http"
templateHelpers "synlotto-website/helpers/template"
httpHelpers "synlotto-website/internal/helpers/http"
templateHelpers "synlotto-website/internal/helpers/template"
"synlotto-website/models"
"synlotto-website/internal/models"
)
func AddPrizesHandler(db *sql.DB) http.HandlerFunc {

View File

@@ -1,7 +1,7 @@
package handlers
import (
"synlotto-website/models"
"synlotto-website/internal/models"
)
var Draws []models.ThunderballResult

View File

@@ -5,8 +5,8 @@ import (
"log"
"net/http"
templateHandlers "synlotto-website/handlers/template"
templateHelpers "synlotto-website/helpers/template"
templateHandlers "synlotto-website/internal/handlers/template"
templateHelpers "synlotto-website/internal/helpers/template"
)
func Home(db *sql.DB) http.HandlerFunc {

View File

@@ -5,11 +5,11 @@ import (
"log"
"net/http"
templateHelpers "synlotto-website/helpers/template"
templateHelpers "synlotto-website/internal/helpers/template"
"synlotto-website/helpers"
"synlotto-website/models"
"synlotto-website/storage"
"synlotto-website/internal/helpers"
"synlotto-website/internal/models"
"synlotto-website/internal/storage"
)
func NewDraw(db *sql.DB) http.HandlerFunc {

View File

@@ -6,13 +6,13 @@ import (
"log"
"net/http"
templateHandlers "synlotto-website/handlers/template"
securityHelpers "synlotto-website/helpers/security"
templateHelpers "synlotto-website/helpers/template"
templateHandlers "synlotto-website/internal/handlers/template"
securityHelpers "synlotto-website/internal/helpers/security"
templateHelpers "synlotto-website/internal/helpers/template"
"synlotto-website/helpers"
"synlotto-website/models"
"synlotto-website/storage"
"synlotto-website/internal/helpers"
"synlotto-website/internal/models"
"synlotto-website/internal/storage"
)
func CreateSyndicateHandler(db *sql.DB) http.HandlerFunc {

View File

@@ -7,12 +7,12 @@ import (
"strconv"
"time"
templateHandlers "synlotto-website/handlers/template"
securityHelpers "synlotto-website/helpers/security"
templateHelpers "synlotto-website/helpers/template"
templateHandlers "synlotto-website/internal/handlers/template"
securityHelpers "synlotto-website/internal/helpers/security"
templateHelpers "synlotto-website/internal/helpers/template"
"synlotto-website/helpers"
"synlotto-website/storage"
"synlotto-website/internal/helpers"
"synlotto-website/internal/storage"
)
func SyndicateInviteHandler(db *sql.DB) http.HandlerFunc {

View File

@@ -10,13 +10,13 @@ import (
"strconv"
"time"
httpHelpers "synlotto-website/helpers/http"
securityHelpers "synlotto-website/helpers/security"
templateHelpers "synlotto-website/helpers/template"
httpHelpers "synlotto-website/internal/helpers/http"
securityHelpers "synlotto-website/internal/helpers/security"
templateHelpers "synlotto-website/internal/helpers/template"
draws "synlotto-website/services/draws"
"synlotto-website/helpers"
"synlotto-website/models"
"synlotto-website/internal/helpers"
"synlotto-website/internal/models"
"github.com/gorilla/csrf"
)

View File

@@ -1,7 +1,7 @@
package handlers
import (
"synlotto-website/models"
"synlotto-website/internal/models"
)
func MatchTicketToDraw(ticket models.MatchTicket, draw models.DrawResult, rules []models.PrizeRule) models.MatchResult {

View File

@@ -5,13 +5,13 @@ import (
"log"
"net/http"
templateHandlers "synlotto-website/handlers/template"
"synlotto-website/helpers"
httpHelpers "synlotto-website/helpers/http"
securityHelpers "synlotto-website/helpers/security"
templateHelpers "synlotto-website/helpers/template"
templateHandlers "synlotto-website/internal/handlers/template"
"synlotto-website/internal/helpers"
httpHelpers "synlotto-website/internal/helpers/http"
securityHelpers "synlotto-website/internal/helpers/security"
templateHelpers "synlotto-website/internal/helpers/template"
"synlotto-website/storage"
"synlotto-website/internal/storage"
)
func MessagesInboxHandler(db *sql.DB) http.HandlerFunc {

View File

@@ -6,11 +6,11 @@ import (
"net/http"
"strconv"
templateHandlers "synlotto-website/handlers/template"
httpHelpers "synlotto-website/helpers/http"
templateHelpers "synlotto-website/helpers/template"
templateHandlers "synlotto-website/internal/handlers/template"
httpHelpers "synlotto-website/internal/helpers/http"
templateHelpers "synlotto-website/internal/helpers/template"
"synlotto-website/storage"
"synlotto-website/internal/storage"
)
func NotificationsHandler(db *sql.DB) http.HandlerFunc {

View File

@@ -9,11 +9,11 @@ import (
"sort"
"strconv"
templateHelpers "synlotto-website/helpers/template"
templateHelpers "synlotto-website/internal/helpers/template"
"synlotto-website/helpers"
"synlotto-website/middleware"
"synlotto-website/models"
"synlotto-website/internal/helpers"
"synlotto-website/internal/http/middleware"
"synlotto-website/internal/models"
)
func ResultsThunderball(db *sql.DB) http.HandlerFunc {

View File

@@ -6,10 +6,10 @@ import (
"net"
"net/http"
templateHandlers "synlotto-website/handlers/template"
templateHelpers "synlotto-website/helpers/template"
templateHandlers "synlotto-website/internal/handlers/template"
templateHelpers "synlotto-website/internal/helpers/template"
"synlotto-website/middleware"
"synlotto-website/internal/http/middleware"
)
func StatisticsThunderball(db *sql.DB) http.HandlerFunc {

View File

@@ -5,10 +5,10 @@ import (
"log"
"net/http"
httpHelper "synlotto-website/helpers/http"
httpHelper "synlotto-website/internal/helpers/http"
"synlotto-website/models"
"synlotto-website/storage"
"synlotto-website/internal/models"
"synlotto-website/internal/storage"
)
func BuildTemplateData(db *sql.DB, w http.ResponseWriter, r *http.Request) models.TemplateData {