move errors and store

This commit is contained in:
celogeek 2022-04-30 18:21:59 +02:00
parent f5367de986
commit 20dd94b460
Signed by: celogeek
GPG Key ID: E6B7BDCFC446233A
16 changed files with 10 additions and 11 deletions

2
go.mod
View File

@ -3,6 +3,7 @@ module gitlab.celogeek.com/photos/api
go 1.17
require (
github.com/dsoprea/go-exif/v3 v3.0.0-20210625224831-a6301f85c82b
github.com/gin-gonic/gin v1.7.7
github.com/go-resty/resty/v2 v2.7.0
github.com/go-sql-driver/mysql v1.6.0
@ -15,7 +16,6 @@ require (
)
require (
github.com/dsoprea/go-exif/v3 v3.0.0-20210625224831-a6301f85c82b // indirect
github.com/dsoprea/go-logging v0.0.0-20200710184922-b02d349568dd // indirect
github.com/dsoprea/go-utility/v2 v2.0.0-20200717064901-2fccff4aa15e // indirect
github.com/gin-contrib/sse v0.1.0 // indirect

1
go.sum
View File

@ -115,7 +115,6 @@ gopkg.in/validator.v2 v2.0.0-20210331031555-b37d688a7fb0 h1:EFLtLCwd8tGN+r/ePz3c
gopkg.in/validator.v2 v2.0.0-20210331031555-b37d688a7fb0/go.mod h1:o4V0GXN9/CAmCsvJ0oXYZvrZOe7syiDZSN1GWGZTGzc=
gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
gopkg.in/yaml.v2 v2.2.7/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
gopkg.in/yaml.v2 v2.2.8 h1:obN1ZagJSUGI0Ek/LBmuj4SNLPfIny3KsKFopxRdj10=
gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
gopkg.in/yaml.v2 v2.3.0 h1:clyUAQHOM3G0M3f5vQj7LuJrETvjVot3Z5el9nffUtU=
gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=

View File

@ -5,8 +5,8 @@ import (
"net/http"
"github.com/gin-gonic/gin"
photoserrors "gitlab.celogeek.com/photos/api/internal/photos/errors"
"gitlab.celogeek.com/photos/api/internal/photos/models"
"gitlab.celogeek.com/photos/api/internal/photoserrors"
"gopkg.in/validator.v2"
"gorm.io/gorm"
)

View File

@ -4,7 +4,7 @@ import (
"net/http"
"github.com/gin-gonic/gin"
"gitlab.celogeek.com/photos/api/internal/photoserrors"
photoserrors "gitlab.celogeek.com/photos/api/internal/photos/errors"
)
func (s *Service) RequireBody(c *gin.Context) {

View File

@ -13,8 +13,8 @@ import (
"github.com/dsoprea/go-exif/v3"
"github.com/gin-gonic/gin"
"github.com/go-sql-driver/mysql"
photoserrors "gitlab.celogeek.com/photos/api/internal/photos/errors"
"gitlab.celogeek.com/photos/api/internal/photos/models"
"gitlab.celogeek.com/photos/api/internal/photoserrors"
"gorm.io/gorm"
)

View File

@ -10,8 +10,8 @@ import (
"github.com/gin-gonic/gin"
"github.com/go-sql-driver/mysql"
"gitlab.celogeek.com/photos/api/internal/photoserrors"
"gitlab.celogeek.com/photos/api/internal/store"
photoserrors "gitlab.celogeek.com/photos/api/internal/photos/errors"
"gitlab.celogeek.com/photos/api/internal/photos/store"
"gorm.io/gorm"
)

View File

@ -4,7 +4,7 @@ import (
"net/http"
"github.com/gin-gonic/gin"
"gitlab.celogeek.com/photos/api/internal/photoserrors"
photoserrors "gitlab.celogeek.com/photos/api/internal/photos/errors"
)
func (s *Service) Recovery(c *gin.Context) {

View File

@ -7,8 +7,8 @@ import (
"time"
"github.com/gin-gonic/gin"
photoserrors "gitlab.celogeek.com/photos/api/internal/photos/errors"
"gitlab.celogeek.com/photos/api/internal/photos/models"
"gitlab.celogeek.com/photos/api/internal/photoserrors"
"gorm.io/gorm"
)

View File

@ -11,8 +11,8 @@ import (
"time"
"github.com/gin-gonic/gin"
photoserrors "gitlab.celogeek.com/photos/api/internal/photos/errors"
"gitlab.celogeek.com/photos/api/internal/photos/models"
"gitlab.celogeek.com/photos/api/internal/photoserrors"
)
type Store struct {

View File

@ -4,7 +4,7 @@ import (
"io"
"os"
"gitlab.celogeek.com/photos/api/internal/photoserrors"
photoserrors "gitlab.celogeek.com/photos/api/internal/photos/errors"
)
type StoreReaderChunk struct {