move errors and store
This commit is contained in:
parent
f5367de986
commit
20dd94b460
2
go.mod
2
go.mod
@ -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
1
go.sum
@ -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=
|
||||
|
@ -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"
|
||||
)
|
||||
|
@ -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) {
|
||||
|
@ -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"
|
||||
)
|
||||
|
||||
|
@ -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"
|
||||
)
|
||||
|
||||
|
@ -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) {
|
||||
|
@ -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"
|
||||
)
|
||||
|
||||
|
@ -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 {
|
@ -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 {
|
Loading…
x
Reference in New Issue
Block a user