Renamed all packages

This commit is contained in:
kolaente 2018-07-25 16:24:46 +02:00 committed by konrad
parent d18570574a
commit 0df8881028
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
18 changed files with 22 additions and 22 deletions

View File

@ -176,7 +176,7 @@ doch auch in einer Funktion machbar sein.
* [ ] Cacher konfigurierbar
* [ ] Deps nach mod (dem nachfolger von dep) umziehen, blocked by Go 1.11
* [x] Überall echo.NewHTTPError statt c.JSON(Message{}) benutzen
* [ ] Bessere Fehlermeldungen wenn das Model was ankommt falsch ist und nicht geparst werden kann
* [x] Bessere Fehlermeldungen wenn das Model was ankommt falsch ist und nicht geparst werden kann
* [ ] Fehlerhandling irgendwie besser machen. Zb mit "World error messages"? Sprich, die Methode ruft einfach auf obs die entsprechende Fehlermeldung gibt und zeigt sonst 500 an.
* [ ] Endpoints neu organisieren? Also zb `namespaces/:nID/lists/:lID/items/:iID` statt einzelnen Endpoints für alles
* [ ] Wenn die ID bei irgendeiner GetByID... Methode < 1 ist soll ein error not exist geworfen werden

View File

@ -1,8 +1,8 @@
package main
import (
"git.kolaente.de/konrad/list/models"
"git.kolaente.de/konrad/list/routes"
"code.vikunja.io/api/models"
"code.vikunja.io/api/routes"
"context"
"fmt"

View File

@ -1,7 +1,7 @@
package v1
import (
"git.kolaente.de/konrad/list/models"
"code.vikunja.io/api/models"
"github.com/labstack/echo"
"net/http"
"strconv"

View File

@ -3,7 +3,7 @@ package v1
import (
"crypto/md5"
"encoding/hex"
"git.kolaente.de/konrad/list/models"
"code.vikunja.io/api/models"
"github.com/dgrijalva/jwt-go"
"github.com/labstack/echo"
"net/http"

View File

@ -1,6 +1,6 @@
package swagger
import "git.kolaente.de/konrad/list/models"
import "code.vikunja.io/api/models"
// not actually a response, just a hack to get go-swagger to include definitions
// of the various XYZOption structs

View File

@ -1,6 +1,6 @@
package swagger
import "git.kolaente.de/konrad/list/models"
import "code.vikunja.io/api/models"
// Message
// swagger:response Message

View File

@ -2,7 +2,7 @@ package v1
import (
"fmt"
"git.kolaente.de/konrad/list/models"
"code.vikunja.io/api/models"
"github.com/dgrijalva/jwt-go"
"github.com/labstack/echo"
)

View File

@ -1,7 +1,7 @@
package v1
import (
"git.kolaente.de/konrad/list/models"
"code.vikunja.io/api/models"
"github.com/labstack/echo"
"net/http"
"strconv"

View File

@ -1,7 +1,7 @@
package v1
import (
"git.kolaente.de/konrad/list/models"
"code.vikunja.io/api/models"
"github.com/labstack/echo"
"net/http"
"strconv"

View File

@ -1,7 +1,7 @@
package v1
import (
"git.kolaente.de/konrad/list/models"
"code.vikunja.io/api/models"
"github.com/labstack/echo"
"net/http"
"strconv"

View File

@ -4,7 +4,7 @@ import (
"net/http"
"strconv"
"git.kolaente.de/konrad/list/models"
"code.vikunja.io/api/models"
"github.com/labstack/echo"
)

View File

@ -1,7 +1,7 @@
package crud
import (
"git.kolaente.de/konrad/list/models"
"code.vikunja.io/api/models"
"github.com/labstack/echo"
"net/http"
"reflect"

View File

@ -1,7 +1,7 @@
package crud
import (
"git.kolaente.de/konrad/list/models"
"code.vikunja.io/api/models"
"github.com/labstack/echo"
"net/http"
)

View File

@ -1,7 +1,7 @@
package crud
import (
"git.kolaente.de/konrad/list/models"
"code.vikunja.io/api/models"
)
// WebHandler defines the webhandler object

View File

@ -1,7 +1,7 @@
package crud
import (
"git.kolaente.de/konrad/list/models"
"code.vikunja.io/api/models"
"github.com/labstack/echo"
"net/http"
)

View File

@ -2,7 +2,7 @@ package crud
import (
"fmt"
"git.kolaente.de/konrad/list/models"
"code.vikunja.io/api/models"
"github.com/labstack/echo"
"net/http"
)

View File

@ -1,7 +1,7 @@
package crud
import (
"git.kolaente.de/konrad/list/models"
"code.vikunja.io/api/models"
"github.com/labstack/echo"
"net/http"
"reflect"

View File

@ -30,10 +30,10 @@ import (
"github.com/labstack/echo"
"github.com/labstack/echo/middleware"
"git.kolaente.de/konrad/list/models"
apiv1 "git.kolaente.de/konrad/list/routes/api/v1"
_ "git.kolaente.de/konrad/list/routes/api/v1/swagger" // for docs generation
"git.kolaente.de/konrad/list/routes/crud"
"code.vikunja.io/api/models"
apiv1 "code.vikunja.io/api/routes/api/v1"
_ "code.vikunja.io/api/routes/api/v1/swagger" // for docs generation
"code.vikunja.io/api/routes/crud"
"net/http"
)