chore: move common packages to internal

This commit is contained in:
Steven 2023-10-26 09:02:50 +08:00
parent 9859d77cba
commit 5b3af827e1
27 changed files with 27 additions and 27 deletions

View file

@ -17,8 +17,8 @@ import (
"github.com/pkg/errors"
"go.uber.org/zap"
"github.com/usememos/memos/common/log"
"github.com/usememos/memos/common/util"
"github.com/usememos/memos/internal/log"
"github.com/usememos/memos/internal/util"
"github.com/usememos/memos/server/profile"
"github.com/usememos/memos/store"
)

View file

@ -14,7 +14,7 @@ import (
"golang.org/x/crypto/bcrypt"
"github.com/usememos/memos/api/auth"
"github.com/usememos/memos/common/util"
"github.com/usememos/memos/internal/util"
"github.com/usememos/memos/plugin/idp"
"github.com/usememos/memos/plugin/idp/oauth2"
storepb "github.com/usememos/memos/proto/gen/store"

View file

@ -7,7 +7,7 @@ import (
"github.com/labstack/echo/v4"
"github.com/usememos/memos/common/util"
"github.com/usememos/memos/internal/util"
"github.com/usememos/memos/store"
)

View file

@ -10,7 +10,7 @@ import (
"github.com/pkg/errors"
"github.com/usememos/memos/api/auth"
"github.com/usememos/memos/common/util"
"github.com/usememos/memos/internal/util"
storepb "github.com/usememos/memos/proto/gen/store"
"github.com/usememos/memos/store"
)

View file

@ -12,8 +12,8 @@ import (
"github.com/pkg/errors"
"go.uber.org/zap"
"github.com/usememos/memos/common/log"
"github.com/usememos/memos/common/util"
"github.com/usememos/memos/internal/log"
"github.com/usememos/memos/internal/util"
"github.com/usememos/memos/server/service/metric"
"github.com/usememos/memos/store"
)

View file

@ -7,7 +7,7 @@ import (
"github.com/labstack/echo/v4"
"github.com/usememos/memos/common/util"
"github.com/usememos/memos/internal/util"
"github.com/usememos/memos/store"
)

View file

@ -7,7 +7,7 @@ import (
"github.com/labstack/echo/v4"
"github.com/usememos/memos/common/util"
"github.com/usememos/memos/internal/util"
"github.com/usememos/memos/store"
)

View file

@ -18,8 +18,8 @@ import (
"github.com/pkg/errors"
"go.uber.org/zap"
"github.com/usememos/memos/common/log"
"github.com/usememos/memos/common/util"
"github.com/usememos/memos/internal/log"
"github.com/usememos/memos/internal/util"
"github.com/usememos/memos/plugin/storage/s3"
"github.com/usememos/memos/store"
)

View file

@ -15,7 +15,7 @@ import (
"github.com/pkg/errors"
"github.com/yuin/goldmark"
"github.com/usememos/memos/common/util"
"github.com/usememos/memos/internal/util"
"github.com/usememos/memos/store"
)

View file

@ -7,7 +7,7 @@ import (
"github.com/labstack/echo/v4"
"github.com/usememos/memos/common/util"
"github.com/usememos/memos/internal/util"
"github.com/usememos/memos/store"
)

View file

@ -7,7 +7,7 @@ import (
"github.com/labstack/echo/v4"
"go.uber.org/zap"
"github.com/usememos/memos/common/log"
"github.com/usememos/memos/internal/log"
"github.com/usememos/memos/server/profile"
"github.com/usememos/memos/store"
)

View file

@ -11,7 +11,7 @@ import (
"github.com/pkg/errors"
"golang.org/x/crypto/bcrypt"
"github.com/usememos/memos/common/util"
"github.com/usememos/memos/internal/util"
"github.com/usememos/memos/server/service/metric"
"github.com/usememos/memos/store"
)

View file

@ -13,7 +13,7 @@ import (
"google.golang.org/grpc/status"
"github.com/usememos/memos/api/auth"
"github.com/usememos/memos/common/util"
"github.com/usememos/memos/internal/util"
storepb "github.com/usememos/memos/proto/gen/store"
"github.com/usememos/memos/store"
)

View file

@ -12,7 +12,7 @@ import (
"google.golang.org/grpc/status"
"google.golang.org/protobuf/types/known/timestamppb"
"github.com/usememos/memos/common/log"
"github.com/usememos/memos/internal/log"
apiv2pb "github.com/usememos/memos/proto/gen/api/v2"
"github.com/usememos/memos/server/profile"
"github.com/usememos/memos/store"

View file

@ -12,7 +12,7 @@ import (
"github.com/spf13/viper"
"go.uber.org/zap"
"github.com/usememos/memos/common/log"
"github.com/usememos/memos/internal/log"
"github.com/usememos/memos/server"
_profile "github.com/usememos/memos/server/profile"
"github.com/usememos/memos/server/service/metric"

View file

@ -9,7 +9,7 @@ import (
"github.com/spf13/cobra"
"golang.org/x/crypto/bcrypt"
"github.com/usememos/memos/common/util"
"github.com/usememos/memos/internal/util"
"github.com/usememos/memos/store"
"github.com/usememos/memos/store/db/sqlite"
)

View file

@ -5,7 +5,7 @@ import (
"go.uber.org/zap"
"github.com/usememos/memos/common/log"
"github.com/usememos/memos/internal/log"
)
type Attachment struct {

View file

@ -9,7 +9,7 @@ import (
"go.uber.org/zap"
"github.com/usememos/memos/common/log"
"github.com/usememos/memos/internal/log"
)
type Handler interface {

View file

@ -8,7 +8,7 @@ import (
"github.com/labstack/echo/v4"
"github.com/labstack/echo/v4/middleware"
"github.com/usememos/memos/common/util"
"github.com/usememos/memos/internal/util"
)
//go:embed dist

View file

@ -18,7 +18,7 @@ import (
apiv1 "github.com/usememos/memos/api/v1"
apiv2 "github.com/usememos/memos/api/v2"
"github.com/usememos/memos/common/log"
"github.com/usememos/memos/internal/log"
"github.com/usememos/memos/plugin/telegram"
"github.com/usememos/memos/server/integration"
"github.com/usememos/memos/server/profile"

View file

@ -9,7 +9,7 @@ import (
"go.uber.org/zap"
apiv1 "github.com/usememos/memos/api/v1"
"github.com/usememos/memos/common/log"
"github.com/usememos/memos/internal/log"
"github.com/usememos/memos/store"
)

View file

@ -8,7 +8,7 @@ import (
"github.com/pkg/errors"
"github.com/usememos/memos/common/util"
"github.com/usememos/memos/internal/util"
"github.com/usememos/memos/store"
)

View file

@ -8,7 +8,7 @@ import (
"github.com/go-sql-driver/mysql"
"github.com/pkg/errors"
"github.com/usememos/memos/common/log"
"github.com/usememos/memos/internal/log"
"github.com/usememos/memos/server/profile"
"github.com/usememos/memos/store"
)

View file

@ -8,7 +8,7 @@ import (
"github.com/pkg/errors"
"github.com/usememos/memos/common/util"
"github.com/usememos/memos/internal/util"
"github.com/usememos/memos/store"
)