From 2311d643c6eb8f826da17415d003b188d38e7de9 Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Sat, 9 Nov 2019 11:40:56 +0100 Subject: [PATCH] fix repo path --- README.md | 4 ++-- amqp/amqp_endpoints.go | 6 ++--- amqp/amqpclient.go | 2 +- doc/api/responses.go | 2 +- go.mod | 2 +- routes/dashboard/dashboard_endpoints.go | 6 ++--- routes/dashboard/dashboard_methods.go | 4 ++-- routes/dashboard/dashboard_middleware.go | 6 ++--- routes/dashboard/dashboard_test.go | 8 +++---- routes/file/file_endpoints.go | 8 +++---- routes/file/file_methods.go | 6 ++--- routes/file/file_middleware.go | 8 +++---- routes/file/file_test.go | 16 +++++++------- routes/scenario/scenario_endpoints.go | 6 ++--- routes/scenario/scenario_methods.go | 4 ++-- routes/scenario/scenario_middleware.go | 4 ++-- routes/scenario/scenario_test.go | 6 ++--- routes/signal/signal_endpoints.go | 6 ++--- routes/signal/signal_methods.go | 4 ++-- routes/signal/signal_middleware.go | 6 ++--- routes/signal/signal_test.go | 12 +++++----- .../simulationmodel_endpoints.go | 6 ++--- .../simulationmodel_methods.go | 6 ++--- .../simulationmodel_middleware.go | 6 ++--- .../simulationmodel/simulationmodel_test.go | 10 ++++----- routes/simulator/simulator_endpoints.go | 4 ++-- routes/simulator/simulator_methods.go | 2 +- routes/simulator/simulator_middleware.go | 4 ++-- routes/simulator/simulator_test.go | 6 ++--- routes/user/authenticate_endpoint.go | 2 +- routes/user/user_endpoints.go | 4 ++-- routes/user/user_methods.go | 2 +- routes/user/user_middleware.go | 4 ++-- routes/user/user_test.go | 4 ++-- routes/widget/widget_endpoints.go | 6 ++--- routes/widget/widget_methods.go | 4 ++-- routes/widget/widget_middleware.go | 6 ++--- routes/widget/widget_test.go | 10 ++++----- start.go | 22 +++++++++---------- 39 files changed, 117 insertions(+), 117 deletions(-) diff --git a/README.md b/README.md index d2661fa..e5dd7b9 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # VILLASweb-backend-go -[![pipeline status](https://git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/badges/master/pipeline.svg)](https://git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/commits/master) -[![coverage report](https://git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/badges/master/coverage.svg)](https://git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/commits/master) +[![pipeline status](https://git.rwth-aachen.de/acs/public/villas/web-backend-go/badges/master/pipeline.svg)](https://git.rwth-aachen.de/acs/public/villas/web-backend-go/commits/master) +[![coverage report](https://git.rwth-aachen.de/acs/public/villas/web-backend-go/badges/master/coverage.svg)](https://git.rwth-aachen.de/acs/public/villas/web-backend-go/commits/master) ## Description This is a rewrite of the backend for the VILLASweb diff --git a/amqp/amqp_endpoints.go b/amqp/amqp_endpoints.go index f6ba08c..b0d80cd 100644 --- a/amqp/amqp_endpoints.go +++ b/amqp/amqp_endpoints.go @@ -1,9 +1,9 @@ package amqp import ( - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/database" - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/helper" - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/routes/simulator" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/database" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/helper" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/routes/simulator" "github.com/gin-gonic/gin" "net/http" "time" diff --git a/amqp/amqpclient.go b/amqp/amqpclient.go index 3ddc49f..9ab55f6 100644 --- a/amqp/amqpclient.go +++ b/amqp/amqpclient.go @@ -3,7 +3,7 @@ package amqp import ( "encoding/json" "fmt" - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/database" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/database" "github.com/streadway/amqp" "github.com/tidwall/gjson" "strings" diff --git a/doc/api/responses.go b/doc/api/responses.go index ba6f9f8..eaceb22 100644 --- a/doc/api/responses.go +++ b/doc/api/responses.go @@ -1,6 +1,6 @@ package docs -import "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/database" +import "git.rwth-aachen.de/acs/public/villas/web-backend-go/database" // This file defines the responses to any endpoint in the backend // The defined structures are only used for documentation purposes with swaggo and are NOT used in the code diff --git a/go.mod b/go.mod index e93f033..56e36f6 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module git.rwth-aachen.de/acs/public/villas/villasweb-backend-go +module git.rwth-aachen.de/acs/public/villas/web-backend-go require ( github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc diff --git a/routes/dashboard/dashboard_endpoints.go b/routes/dashboard/dashboard_endpoints.go index c85ffde..a248251 100644 --- a/routes/dashboard/dashboard_endpoints.go +++ b/routes/dashboard/dashboard_endpoints.go @@ -1,13 +1,13 @@ package dashboard import ( - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/helper" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/helper" "net/http" "github.com/gin-gonic/gin" - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/database" - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/routes/scenario" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/database" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/routes/scenario" ) func RegisterDashboardEndpoints(r *gin.RouterGroup) { diff --git a/routes/dashboard/dashboard_methods.go b/routes/dashboard/dashboard_methods.go index 2461f6f..b5dabb3 100644 --- a/routes/dashboard/dashboard_methods.go +++ b/routes/dashboard/dashboard_methods.go @@ -1,8 +1,8 @@ package dashboard import ( - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/database" - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/routes/scenario" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/database" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/routes/scenario" ) type Dashboard struct { diff --git a/routes/dashboard/dashboard_middleware.go b/routes/dashboard/dashboard_middleware.go index 301b52b..2bea4ba 100644 --- a/routes/dashboard/dashboard_middleware.go +++ b/routes/dashboard/dashboard_middleware.go @@ -2,11 +2,11 @@ package dashboard import ( "fmt" - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/helper" - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/routes/scenario" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/helper" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/routes/scenario" "github.com/gin-gonic/gin" - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/database" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/database" ) func CheckPermissions(c *gin.Context, operation database.CRUD, dabIDSource string, dabIDBody int) (bool, Dashboard) { diff --git a/routes/dashboard/dashboard_test.go b/routes/dashboard/dashboard_test.go index 94a3020..ff54134 100644 --- a/routes/dashboard/dashboard_test.go +++ b/routes/dashboard/dashboard_test.go @@ -2,10 +2,10 @@ package dashboard import ( "fmt" - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/database" - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/helper" - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/routes/scenario" - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/routes/user" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/database" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/helper" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/routes/scenario" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/routes/user" "github.com/gin-gonic/gin" "github.com/jinzhu/gorm" "github.com/jinzhu/gorm/dialects/postgres" diff --git a/routes/file/file_endpoints.go b/routes/file/file_endpoints.go index 04cc4a9..29625d4 100644 --- a/routes/file/file_endpoints.go +++ b/routes/file/file_endpoints.go @@ -2,15 +2,15 @@ package file import ( "fmt" - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/helper" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/helper" "net/http" "strconv" "github.com/gin-gonic/gin" - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/database" - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/routes/simulationmodel" - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/routes/widget" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/database" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/routes/simulationmodel" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/routes/widget" ) func RegisterFileEndpoints(r *gin.RouterGroup) { diff --git a/routes/file/file_methods.go b/routes/file/file_methods.go index 513300f..83c3ddc 100644 --- a/routes/file/file_methods.go +++ b/routes/file/file_methods.go @@ -9,9 +9,9 @@ import ( "path/filepath" "time" - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/database" - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/routes/simulationmodel" - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/routes/widget" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/database" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/routes/simulationmodel" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/routes/widget" ) type File struct { diff --git a/routes/file/file_middleware.go b/routes/file/file_middleware.go index d53994f..207fdcf 100644 --- a/routes/file/file_middleware.go +++ b/routes/file/file_middleware.go @@ -2,10 +2,10 @@ package file import ( "fmt" - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/database" - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/helper" - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/routes/simulationmodel" - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/routes/widget" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/database" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/helper" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/routes/simulationmodel" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/routes/widget" "github.com/gin-gonic/gin" ) diff --git a/routes/file/file_test.go b/routes/file/file_test.go index c6df833..b4b9cf4 100644 --- a/routes/file/file_test.go +++ b/routes/file/file_test.go @@ -3,14 +3,14 @@ package file import ( "bytes" "fmt" - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/database" - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/helper" - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/routes/dashboard" - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/routes/scenario" - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/routes/simulationmodel" - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/routes/simulator" - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/routes/user" - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/routes/widget" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/database" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/helper" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/routes/dashboard" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/routes/scenario" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/routes/simulationmodel" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/routes/simulator" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/routes/user" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/routes/widget" "github.com/gin-gonic/gin" "github.com/jinzhu/gorm" "github.com/jinzhu/gorm/dialects/postgres" diff --git a/routes/scenario/scenario_endpoints.go b/routes/scenario/scenario_endpoints.go index 81de207..9e14c90 100644 --- a/routes/scenario/scenario_endpoints.go +++ b/routes/scenario/scenario_endpoints.go @@ -1,13 +1,13 @@ package scenario import ( - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/helper" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/helper" "net/http" "github.com/gin-gonic/gin" - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/database" - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/routes/user" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/database" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/routes/user" ) func RegisterScenarioEndpoints(r *gin.RouterGroup) { diff --git a/routes/scenario/scenario_methods.go b/routes/scenario/scenario_methods.go index ae04b50..58d71db 100644 --- a/routes/scenario/scenario_methods.go +++ b/routes/scenario/scenario_methods.go @@ -2,8 +2,8 @@ package scenario import ( "fmt" - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/database" - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/routes/user" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/database" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/routes/user" "github.com/jinzhu/gorm" ) diff --git a/routes/scenario/scenario_middleware.go b/routes/scenario/scenario_middleware.go index 7f8f80c..efa08af 100644 --- a/routes/scenario/scenario_middleware.go +++ b/routes/scenario/scenario_middleware.go @@ -2,10 +2,10 @@ package scenario import ( "fmt" - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/helper" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/helper" "github.com/gin-gonic/gin" - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/database" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/database" ) func CheckPermissions(c *gin.Context, operation database.CRUD, scenarioIDsource string, scenarioIDbody int) (bool, Scenario) { diff --git a/routes/scenario/scenario_test.go b/routes/scenario/scenario_test.go index d48bbb6..cb15c7e 100644 --- a/routes/scenario/scenario_test.go +++ b/routes/scenario/scenario_test.go @@ -2,7 +2,7 @@ package scenario import ( "fmt" - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/helper" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/helper" "github.com/gin-gonic/gin" "github.com/jinzhu/gorm" "github.com/jinzhu/gorm/dialects/postgres" @@ -10,8 +10,8 @@ import ( "os" "testing" - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/database" - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/routes/user" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/database" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/routes/user" ) var router *gin.Engine diff --git a/routes/signal/signal_endpoints.go b/routes/signal/signal_endpoints.go index eb02b7d..75d0497 100644 --- a/routes/signal/signal_endpoints.go +++ b/routes/signal/signal_endpoints.go @@ -1,13 +1,13 @@ package signal import ( - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/helper" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/helper" "net/http" "github.com/gin-gonic/gin" - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/database" - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/routes/simulationmodel" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/database" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/routes/simulationmodel" ) func RegisterSignalEndpoints(r *gin.RouterGroup) { diff --git a/routes/signal/signal_methods.go b/routes/signal/signal_methods.go index 77484fe..96b3fcf 100644 --- a/routes/signal/signal_methods.go +++ b/routes/signal/signal_methods.go @@ -1,8 +1,8 @@ package signal import ( - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/database" - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/routes/simulationmodel" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/database" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/routes/simulationmodel" ) type Signal struct { diff --git a/routes/signal/signal_middleware.go b/routes/signal/signal_middleware.go index 0cec06e..8f10b36 100644 --- a/routes/signal/signal_middleware.go +++ b/routes/signal/signal_middleware.go @@ -2,11 +2,11 @@ package signal import ( "fmt" - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/helper" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/helper" "github.com/gin-gonic/gin" - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/database" - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/routes/simulationmodel" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/database" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/routes/simulationmodel" ) func checkPermissions(c *gin.Context, operation database.CRUD) (bool, Signal) { diff --git a/routes/signal/signal_test.go b/routes/signal/signal_test.go index 23a9d6d..0909991 100644 --- a/routes/signal/signal_test.go +++ b/routes/signal/signal_test.go @@ -2,12 +2,12 @@ package signal import ( "fmt" - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/database" - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/helper" - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/routes/scenario" - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/routes/simulationmodel" - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/routes/simulator" - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/routes/user" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/database" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/helper" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/routes/scenario" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/routes/simulationmodel" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/routes/simulator" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/routes/user" "github.com/gin-gonic/gin" "github.com/jinzhu/gorm" "github.com/jinzhu/gorm/dialects/postgres" diff --git a/routes/simulationmodel/simulationmodel_endpoints.go b/routes/simulationmodel/simulationmodel_endpoints.go index 1fcf3d0..bbc4385 100644 --- a/routes/simulationmodel/simulationmodel_endpoints.go +++ b/routes/simulationmodel/simulationmodel_endpoints.go @@ -1,13 +1,13 @@ package simulationmodel import ( - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/helper" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/helper" "net/http" "github.com/gin-gonic/gin" - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/database" - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/routes/scenario" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/database" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/routes/scenario" ) func RegisterSimulationModelEndpoints(r *gin.RouterGroup) { diff --git a/routes/simulationmodel/simulationmodel_methods.go b/routes/simulationmodel/simulationmodel_methods.go index 2fdfb78..2f2f2fe 100644 --- a/routes/simulationmodel/simulationmodel_methods.go +++ b/routes/simulationmodel/simulationmodel_methods.go @@ -1,9 +1,9 @@ package simulationmodel import ( - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/database" - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/routes/scenario" - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/routes/simulator" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/database" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/routes/scenario" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/routes/simulator" ) type SimulationModel struct { diff --git a/routes/simulationmodel/simulationmodel_middleware.go b/routes/simulationmodel/simulationmodel_middleware.go index d6b016a..1f1657b 100644 --- a/routes/simulationmodel/simulationmodel_middleware.go +++ b/routes/simulationmodel/simulationmodel_middleware.go @@ -2,11 +2,11 @@ package simulationmodel import ( "fmt" - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/helper" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/helper" "github.com/gin-gonic/gin" - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/database" - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/routes/scenario" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/database" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/routes/scenario" ) func CheckPermissions(c *gin.Context, operation database.CRUD, modelIDSource string, modelIDBody int) (bool, SimulationModel) { diff --git a/routes/simulationmodel/simulationmodel_test.go b/routes/simulationmodel/simulationmodel_test.go index db85dae..bfc1641 100644 --- a/routes/simulationmodel/simulationmodel_test.go +++ b/routes/simulationmodel/simulationmodel_test.go @@ -2,11 +2,11 @@ package simulationmodel import ( "fmt" - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/database" - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/helper" - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/routes/scenario" - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/routes/simulator" - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/routes/user" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/database" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/helper" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/routes/scenario" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/routes/simulator" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/routes/user" "github.com/gin-gonic/gin" "github.com/jinzhu/gorm" "github.com/jinzhu/gorm/dialects/postgres" diff --git a/routes/simulator/simulator_endpoints.go b/routes/simulator/simulator_endpoints.go index a034dc9..6b4c678 100644 --- a/routes/simulator/simulator_endpoints.go +++ b/routes/simulator/simulator_endpoints.go @@ -1,11 +1,11 @@ package simulator import ( - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/helper" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/helper" "github.com/gin-gonic/gin" "net/http" - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/database" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/database" ) func RegisterSimulatorEndpoints(r *gin.RouterGroup) { diff --git a/routes/simulator/simulator_methods.go b/routes/simulator/simulator_methods.go index 67f1dbe..4ed226c 100644 --- a/routes/simulator/simulator_methods.go +++ b/routes/simulator/simulator_methods.go @@ -3,7 +3,7 @@ package simulator import ( "fmt" - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/database" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/database" ) type Simulator struct { diff --git a/routes/simulator/simulator_middleware.go b/routes/simulator/simulator_middleware.go index 2977f5a..a66703d 100644 --- a/routes/simulator/simulator_middleware.go +++ b/routes/simulator/simulator_middleware.go @@ -2,8 +2,8 @@ package simulator import ( "fmt" - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/database" - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/helper" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/database" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/helper" "github.com/gin-gonic/gin" ) diff --git a/routes/simulator/simulator_test.go b/routes/simulator/simulator_test.go index df73098..7532534 100644 --- a/routes/simulator/simulator_test.go +++ b/routes/simulator/simulator_test.go @@ -2,7 +2,7 @@ package simulator import ( "fmt" - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/helper" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/helper" "github.com/jinzhu/gorm" "github.com/jinzhu/gorm/dialects/postgres" "github.com/stretchr/testify/assert" @@ -11,8 +11,8 @@ import ( "github.com/gin-gonic/gin" - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/database" - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/routes/user" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/database" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/routes/user" ) var router *gin.Engine diff --git a/routes/user/authenticate_endpoint.go b/routes/user/authenticate_endpoint.go index 3fa67cb..e9b25e6 100644 --- a/routes/user/authenticate_endpoint.go +++ b/routes/user/authenticate_endpoint.go @@ -1,7 +1,7 @@ package user import ( - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/helper" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/helper" "github.com/dgrijalva/jwt-go" "github.com/gin-gonic/gin" "net/http" diff --git a/routes/user/user_endpoints.go b/routes/user/user_endpoints.go index 9d869d4..723e2fe 100644 --- a/routes/user/user_endpoints.go +++ b/routes/user/user_endpoints.go @@ -2,14 +2,14 @@ package user import ( "fmt" - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/helper" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/helper" "net/http" "strings" "time" "github.com/gin-gonic/gin" - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/database" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/database" ) // TODO: the signing secret must be environmental variable diff --git a/routes/user/user_methods.go b/routes/user/user_methods.go index f95f03d..b08cc81 100644 --- a/routes/user/user_methods.go +++ b/routes/user/user_methods.go @@ -2,7 +2,7 @@ package user import ( "fmt" - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/database" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/database" "golang.org/x/crypto/bcrypt" ) diff --git a/routes/user/user_middleware.go b/routes/user/user_middleware.go index 3f762ef..eebf64b 100644 --- a/routes/user/user_middleware.go +++ b/routes/user/user_middleware.go @@ -2,8 +2,8 @@ package user import ( "fmt" - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/database" - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/helper" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/database" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/helper" "github.com/dgrijalva/jwt-go" "github.com/dgrijalva/jwt-go/request" "github.com/gin-gonic/gin" diff --git a/routes/user/user_test.go b/routes/user/user_test.go index 63e8dcd..582f540 100644 --- a/routes/user/user_test.go +++ b/routes/user/user_test.go @@ -4,7 +4,7 @@ import ( "bytes" "encoding/json" "fmt" - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/helper" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/helper" "net/http" "net/http/httptest" "os" @@ -14,7 +14,7 @@ import ( "github.com/jinzhu/gorm" "github.com/stretchr/testify/assert" - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/database" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/database" ) var router *gin.Engine diff --git a/routes/widget/widget_endpoints.go b/routes/widget/widget_endpoints.go index 973b5fb..4096bd8 100644 --- a/routes/widget/widget_endpoints.go +++ b/routes/widget/widget_endpoints.go @@ -1,13 +1,13 @@ package widget import ( - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/helper" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/helper" "net/http" "github.com/gin-gonic/gin" - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/database" - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/routes/dashboard" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/database" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/routes/dashboard" ) func RegisterWidgetEndpoints(r *gin.RouterGroup) { diff --git a/routes/widget/widget_methods.go b/routes/widget/widget_methods.go index cc68b96..2351d95 100644 --- a/routes/widget/widget_methods.go +++ b/routes/widget/widget_methods.go @@ -1,8 +1,8 @@ package widget import ( - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/database" - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/routes/dashboard" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/database" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/routes/dashboard" ) type Widget struct { diff --git a/routes/widget/widget_middleware.go b/routes/widget/widget_middleware.go index 93f5daf..b493572 100644 --- a/routes/widget/widget_middleware.go +++ b/routes/widget/widget_middleware.go @@ -2,11 +2,11 @@ package widget import ( "fmt" - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/helper" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/helper" "github.com/gin-gonic/gin" - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/database" - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/routes/dashboard" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/database" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/routes/dashboard" ) func CheckPermissions(c *gin.Context, operation database.CRUD, widgetIDBody int) (bool, Widget) { diff --git a/routes/widget/widget_test.go b/routes/widget/widget_test.go index cf7e0fd..55ae76b 100644 --- a/routes/widget/widget_test.go +++ b/routes/widget/widget_test.go @@ -2,11 +2,11 @@ package widget import ( "fmt" - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/database" - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/helper" - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/routes/dashboard" - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/routes/scenario" - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/routes/user" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/database" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/helper" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/routes/dashboard" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/routes/scenario" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/routes/user" "github.com/gin-gonic/gin" "github.com/jinzhu/gorm" "github.com/jinzhu/gorm/dialects/postgres" diff --git a/start.go b/start.go index 167aca3..0c9a0bc 100644 --- a/start.go +++ b/start.go @@ -2,23 +2,23 @@ package main import ( "fmt" - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/amqp" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/amqp" "time" "github.com/gin-gonic/gin" "github.com/swaggo/gin-swagger" "github.com/swaggo/gin-swagger/swaggerFiles" - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/database" - _ "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/doc/api" // doc/api folder is used by Swag CLI, you have to import it - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/routes/dashboard" - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/routes/file" - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/routes/scenario" - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/routes/signal" - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/routes/simulationmodel" - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/routes/simulator" - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/routes/user" - "git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/routes/widget" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/database" + _ "git.rwth-aachen.de/acs/public/villas/web-backend-go/doc/api" // doc/api folder is used by Swag CLI, you have to import it + "git.rwth-aachen.de/acs/public/villas/web-backend-go/routes/dashboard" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/routes/file" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/routes/scenario" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/routes/signal" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/routes/simulationmodel" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/routes/simulator" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/routes/user" + "git.rwth-aachen.de/acs/public/villas/web-backend-go/routes/widget" ) // @title VILLASweb Backend API