refacto(models): Move models to the root of the project
This commit is contained in:
parent
1216fa071c
commit
fbe19b4e31
@ -15,7 +15,7 @@ import (
|
|||||||
|
|
||||||
"git.home.m-and-m.ovh/mderasse/gouick/helpers"
|
"git.home.m-and-m.ovh/mderasse/gouick/helpers"
|
||||||
"git.home.m-and-m.ovh/mderasse/gouick/helpers/api_types"
|
"git.home.m-and-m.ovh/mderasse/gouick/helpers/api_types"
|
||||||
"git.home.m-and-m.ovh/mderasse/gouick/helpers/models"
|
"git.home.m-and-m.ovh/mderasse/gouick/models"
|
||||||
|
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
)
|
)
|
||||||
|
@ -6,7 +6,7 @@ import (
|
|||||||
"git.home.m-and-m.ovh/mderasse/gouick/helpers/api_types/gin_gonic"
|
"git.home.m-and-m.ovh/mderasse/gouick/helpers/api_types/gin_gonic"
|
||||||
"git.home.m-and-m.ovh/mderasse/gouick/helpers/api_types/go_swagger"
|
"git.home.m-and-m.ovh/mderasse/gouick/helpers/api_types/go_swagger"
|
||||||
"git.home.m-and-m.ovh/mderasse/gouick/helpers/api_types/mojolicious"
|
"git.home.m-and-m.ovh/mderasse/gouick/helpers/api_types/mojolicious"
|
||||||
"git.home.m-and-m.ovh/mderasse/gouick/helpers/models"
|
"git.home.m-and-m.ovh/mderasse/gouick/models"
|
||||||
)
|
)
|
||||||
|
|
||||||
// GetAPIType will return the APIType object based on an APITypeName.
|
// GetAPIType will return the APIType object based on an APITypeName.
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package base
|
package base
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"git.home.m-and-m.ovh/mderasse/gouick/helpers/models"
|
"git.home.m-and-m.ovh/mderasse/gouick/models"
|
||||||
)
|
)
|
||||||
|
|
||||||
// GetName return the APITypeName of the APIType.
|
// GetName return the APITypeName of the APIType.
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package base
|
package base
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"git.home.m-and-m.ovh/mderasse/gouick/helpers/models"
|
"git.home.m-and-m.ovh/mderasse/gouick/models"
|
||||||
|
|
||||||
"github.com/juju/errors"
|
"github.com/juju/errors"
|
||||||
)
|
)
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package gin_gonic
|
package gin_gonic
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"git.home.m-and-m.ovh/mderasse/gouick/helpers/models"
|
"git.home.m-and-m.ovh/mderasse/gouick/models"
|
||||||
)
|
)
|
||||||
|
|
||||||
// GetName return the APITypeName of the APIType.
|
// GetName return the APITypeName of the APIType.
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package go_swagger
|
package go_swagger
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"git.home.m-and-m.ovh/mderasse/gouick/helpers/models"
|
"git.home.m-and-m.ovh/mderasse/gouick/models"
|
||||||
)
|
)
|
||||||
|
|
||||||
// GetName return the APITypeName of the APIType.
|
// GetName return the APITypeName of the APIType.
|
||||||
|
@ -6,7 +6,7 @@ import (
|
|||||||
"github.com/juju/errors"
|
"github.com/juju/errors"
|
||||||
|
|
||||||
"git.home.m-and-m.ovh/mderasse/gouick/helpers"
|
"git.home.m-and-m.ovh/mderasse/gouick/helpers"
|
||||||
"git.home.m-and-m.ovh/mderasse/gouick/helpers/models"
|
"git.home.m-and-m.ovh/mderasse/gouick/models"
|
||||||
|
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
)
|
)
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
package api_types
|
package api_types
|
||||||
|
|
||||||
import "git.home.m-and-m.ovh/mderasse/gouick/helpers/models"
|
import "git.home.m-and-m.ovh/mderasse/gouick/models"
|
||||||
|
|
||||||
// APITypeInterface is the interface that need to be respected by an APIType.
|
// APITypeInterface is the interface that need to be respected by an APIType.
|
||||||
type APITypeInterface interface {
|
type APITypeInterface interface {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package mojolicious
|
package mojolicious
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"git.home.m-and-m.ovh/mderasse/gouick/helpers/models"
|
"git.home.m-and-m.ovh/mderasse/gouick/models"
|
||||||
)
|
)
|
||||||
|
|
||||||
// GetName return the APITypeName of the APIType.
|
// GetName return the APITypeName of the APIType.
|
||||||
|
@ -7,7 +7,7 @@ import (
|
|||||||
"github.com/juju/errors"
|
"github.com/juju/errors"
|
||||||
"gopkg.in/yaml.v3"
|
"gopkg.in/yaml.v3"
|
||||||
|
|
||||||
"git.home.m-and-m.ovh/mderasse/gouick/helpers/models"
|
"git.home.m-and-m.ovh/mderasse/gouick/models"
|
||||||
|
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
)
|
)
|
||||||
|
@ -3,7 +3,7 @@ package dependencies
|
|||||||
import (
|
import (
|
||||||
"os/exec"
|
"os/exec"
|
||||||
|
|
||||||
"git.home.m-and-m.ovh/mderasse/gouick/helpers/models"
|
"git.home.m-and-m.ovh/mderasse/gouick/models"
|
||||||
"github.com/juju/errors"
|
"github.com/juju/errors"
|
||||||
|
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
|
@ -13,7 +13,7 @@ import (
|
|||||||
"github.com/juju/errors"
|
"github.com/juju/errors"
|
||||||
|
|
||||||
"git.home.m-and-m.ovh/mderasse/gouick/helpers"
|
"git.home.m-and-m.ovh/mderasse/gouick/helpers"
|
||||||
"git.home.m-and-m.ovh/mderasse/gouick/helpers/models"
|
"git.home.m-and-m.ovh/mderasse/gouick/models"
|
||||||
|
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
)
|
)
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
package dependencies
|
package dependencies
|
||||||
|
|
||||||
import "git.home.m-and-m.ovh/mderasse/gouick/helpers/models"
|
import "git.home.m-and-m.ovh/mderasse/gouick/models"
|
||||||
|
|
||||||
// DependencyInterface is the interface that need to be respected for a dependency.
|
// DependencyInterface is the interface that need to be respected for a dependency.
|
||||||
type DependencyInterface interface {
|
type DependencyInterface interface {
|
||||||
|
@ -10,7 +10,7 @@ import (
|
|||||||
"runtime"
|
"runtime"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"git.home.m-and-m.ovh/mderasse/gouick/helpers/models"
|
"git.home.m-and-m.ovh/mderasse/gouick/models"
|
||||||
"github.com/blang/semver"
|
"github.com/blang/semver"
|
||||||
"github.com/juju/errors"
|
"github.com/juju/errors"
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ import (
|
|||||||
"regexp"
|
"regexp"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"git.home.m-and-m.ovh/mderasse/gouick/helpers/models"
|
"git.home.m-and-m.ovh/mderasse/gouick/models"
|
||||||
|
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user