update imports

This commit is contained in:
Hayden 2022-08-29 18:40:54 -08:00
parent 43eba5437a
commit 4c76f6b367
56 changed files with 139 additions and 212 deletions

View file

@ -2,8 +2,8 @@
package mapper
import (
"github.com/hay-kot/git-web-template/backend/ent"
"github.com/hay-kot/git-web-template/backend/internal/types"
"github.com/hay-kot/content/backend/ent"
"github.com/hay-kot/content/backend/internal/types"
)
func UserOutFromModel(from ent.User) types.UserOut {

View file

@ -1,8 +1,8 @@
package factories
import (
"github.com/hay-kot/git-web-template/backend/internal/types"
"github.com/hay-kot/git-web-template/backend/pkgs/faker"
"github.com/hay-kot/content/backend/internal/types"
"github.com/hay-kot/content/backend/pkgs/faker"
)
func UserFactory() types.UserCreate {

View file

@ -3,7 +3,7 @@ package mocks
import (
"os"
"github.com/hay-kot/git-web-template/backend/pkgs/logger"
"github.com/hay-kot/content/backend/pkgs/logger"
)
func GetStructLogger() *logger.Logger {

View file

@ -1,8 +1,8 @@
package mocks
import (
"github.com/hay-kot/git-web-template/backend/internal/repo"
"github.com/hay-kot/git-web-template/backend/internal/services"
"github.com/hay-kot/content/backend/internal/repo"
"github.com/hay-kot/content/backend/internal/services"
)
func GetMockServices(repos *repo.AllRepos) *services.AllServices {

View file

@ -3,8 +3,8 @@ package mocks
import (
"context"
"github.com/hay-kot/git-web-template/backend/ent"
"github.com/hay-kot/git-web-template/backend/internal/repo"
"github.com/hay-kot/content/backend/ent"
"github.com/hay-kot/content/backend/internal/repo"
_ "github.com/mattn/go-sqlite3"
)

View file

@ -8,7 +8,7 @@ import (
"testing"
"time"
"github.com/hay-kot/git-web-template/backend/ent"
"github.com/hay-kot/content/backend/ent"
_ "github.com/mattn/go-sqlite3"
)

View file

@ -1,6 +1,6 @@
package repo
import "github.com/hay-kot/git-web-template/backend/ent"
import "github.com/hay-kot/content/backend/ent"
// AllRepos is a container for all the repository interfaces
type AllRepos struct {

View file

@ -4,10 +4,10 @@ import (
"context"
"time"
"github.com/hay-kot/git-web-template/backend/ent"
"github.com/hay-kot/git-web-template/backend/ent/authtokens"
"github.com/hay-kot/git-web-template/backend/internal/mapper"
"github.com/hay-kot/git-web-template/backend/internal/types"
"github.com/hay-kot/content/backend/ent"
"github.com/hay-kot/content/backend/ent/authtokens"
"github.com/hay-kot/content/backend/internal/mapper"
"github.com/hay-kot/content/backend/internal/types"
)
type EntTokenRepository struct {

View file

@ -5,8 +5,8 @@ import (
"testing"
"time"
"github.com/hay-kot/git-web-template/backend/internal/types"
"github.com/hay-kot/git-web-template/backend/pkgs/hasher"
"github.com/hay-kot/content/backend/internal/types"
"github.com/hay-kot/content/backend/pkgs/hasher"
"github.com/stretchr/testify/assert"
)

View file

@ -3,7 +3,7 @@ package repo
import (
"context"
"github.com/hay-kot/git-web-template/backend/internal/types"
"github.com/hay-kot/content/backend/internal/types"
)
type TokenRepository interface {

View file

@ -4,9 +4,9 @@ import (
"context"
"github.com/google/uuid"
"github.com/hay-kot/git-web-template/backend/ent"
"github.com/hay-kot/git-web-template/backend/ent/user"
"github.com/hay-kot/git-web-template/backend/internal/types"
"github.com/hay-kot/content/backend/ent"
"github.com/hay-kot/content/backend/ent/user"
"github.com/hay-kot/content/backend/internal/types"
)
type EntUserRepository struct {

View file

@ -5,8 +5,8 @@ import (
"fmt"
"testing"
"github.com/hay-kot/git-web-template/backend/internal/types"
"github.com/hay-kot/git-web-template/backend/pkgs/faker"
"github.com/hay-kot/content/backend/internal/types"
"github.com/hay-kot/content/backend/pkgs/faker"
"github.com/stretchr/testify/assert"
)

View file

@ -4,7 +4,7 @@ import (
"context"
"github.com/google/uuid"
"github.com/hay-kot/git-web-template/backend/internal/types"
"github.com/hay-kot/content/backend/internal/types"
)
type UserRepository interface {

View file

@ -1,6 +1,6 @@
package services
import "github.com/hay-kot/git-web-template/backend/internal/repo"
import "github.com/hay-kot/content/backend/internal/repo"
type AllServices struct {
User *UserService

View file

@ -3,7 +3,7 @@ package services
import (
"context"
"github.com/hay-kot/git-web-template/backend/internal/types"
"github.com/hay-kot/content/backend/internal/types"
)
type contextKeys struct {

View file

@ -5,7 +5,7 @@ import (
"testing"
"github.com/google/uuid"
"github.com/hay-kot/git-web-template/backend/internal/types"
"github.com/hay-kot/content/backend/internal/types"
"github.com/stretchr/testify/assert"
)

View file

@ -4,8 +4,8 @@ import (
"context"
"github.com/google/uuid"
"github.com/hay-kot/git-web-template/backend/internal/repo"
"github.com/hay-kot/git-web-template/backend/internal/types"
"github.com/hay-kot/content/backend/internal/repo"
"github.com/hay-kot/content/backend/internal/types"
)
type AdminService struct {

View file

@ -6,9 +6,9 @@ import (
"time"
"github.com/google/uuid"
"github.com/hay-kot/git-web-template/backend/internal/repo"
"github.com/hay-kot/git-web-template/backend/internal/types"
"github.com/hay-kot/git-web-template/backend/pkgs/hasher"
"github.com/hay-kot/content/backend/internal/repo"
"github.com/hay-kot/content/backend/internal/types"
"github.com/hay-kot/content/backend/pkgs/hasher"
)
var (