chore: rename module

This commit is contained in:
boojack
2022-06-27 22:09:06 +08:00
parent a62c982a3d
commit 011fcc7dd4
22 changed files with 54 additions and 36 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
package api
import "memos/server/profile"
import "github.com/usememos/memos/server/profile"
type SystemStatus struct {
Owner *User `json:"owner"`
+4 -4
View File
@@ -4,10 +4,10 @@ import (
"fmt"
"os"
"memos/server"
"memos/server/profile"
"memos/store"
DB "memos/store/db"
"github.com/usememos/memos/server"
"github.com/usememos/memos/server/profile"
"github.com/usememos/memos/store"
DB "github.com/usememos/memos/store/db"
)
const (
+1 -1
View File
@@ -1,6 +1,6 @@
package main
import "memos/bin/server/cmd"
import "github.com/usememos/memos/bin/server/cmd"
func main() {
cmd.Execute()
+1 -1
View File
@@ -1,4 +1,4 @@
module memos
module github.com/usememos/memos
go 1.17
+3 -2
View File
@@ -3,10 +3,11 @@ package server
import (
"encoding/json"
"fmt"
"memos/api"
"memos/common"
"net/http"
"github.com/usememos/memos/api"
"github.com/usememos/memos/common"
"github.com/labstack/echo/v4"
"golang.org/x/crypto/bcrypt"
)
+3 -2
View File
@@ -2,11 +2,12 @@ package server
import (
"fmt"
"memos/api"
"memos/common"
"net/http"
"strconv"
"github.com/usememos/memos/api"
"github.com/usememos/memos/common"
"github.com/gorilla/sessions"
"github.com/labstack/echo-contrib/session"
"github.com/labstack/echo/v4"
+3 -2
View File
@@ -3,11 +3,12 @@ package server
import (
"encoding/json"
"fmt"
"memos/api"
"memos/common"
"net/http"
"strconv"
"github.com/usememos/memos/api"
"github.com/usememos/memos/common"
"github.com/labstack/echo/v4"
)
+2 -1
View File
@@ -2,11 +2,12 @@ package profile
import (
"fmt"
"memos/common"
"os"
"path/filepath"
"strconv"
"strings"
"github.com/usememos/memos/common"
)
// Profile is the configuration to start main server.
+2 -1
View File
@@ -4,10 +4,11 @@ import (
"encoding/json"
"fmt"
"io/ioutil"
"memos/api"
"net/http"
"strconv"
"github.com/usememos/memos/api"
"github.com/labstack/echo/v4"
)
+3 -2
View File
@@ -2,10 +2,11 @@ package server
import (
"fmt"
"memos/server/profile"
"memos/store"
"time"
"github.com/usememos/memos/server/profile"
"github.com/usememos/memos/store"
"github.com/gorilla/securecookie"
"github.com/gorilla/sessions"
"github.com/labstack/echo-contrib/session"
+2 -1
View File
@@ -3,10 +3,11 @@ package server
import (
"encoding/json"
"fmt"
"memos/api"
"net/http"
"strconv"
"github.com/usememos/memos/api"
"github.com/labstack/echo/v4"
)
+2 -1
View File
@@ -2,9 +2,10 @@ package server
import (
"encoding/json"
"memos/api"
"net/http"
"github.com/usememos/memos/api"
"github.com/labstack/echo/v4"
)
+2 -1
View File
@@ -2,10 +2,11 @@ package server
import (
"encoding/json"
"memos/api"
"net/http"
"regexp"
"github.com/usememos/memos/api"
"github.com/labstack/echo/v4"
)
+3 -2
View File
@@ -3,11 +3,12 @@ package server
import (
"encoding/json"
"fmt"
"memos/api"
"memos/common"
"net/http"
"strconv"
"github.com/usememos/memos/api"
"github.com/usememos/memos/common"
"github.com/labstack/echo/v4"
"golang.org/x/crypto/bcrypt"
)
+2 -1
View File
@@ -4,10 +4,11 @@ import (
"encoding/json"
"fmt"
"io/ioutil"
"memos/api"
"net/http"
"strconv"
"github.com/usememos/memos/api"
"github.com/labstack/echo/v4"
)
+3 -2
View File
@@ -6,11 +6,12 @@ import (
"errors"
"fmt"
"io/fs"
"memos/common"
"memos/server/profile"
"os"
"sort"
"github.com/usememos/memos/common"
"github.com/usememos/memos/server/profile"
_ "github.com/mattn/go-sqlite3"
)
+3 -2
View File
@@ -3,9 +3,10 @@ package store
import (
"database/sql"
"fmt"
"memos/api"
"memos/common"
"strings"
"github.com/usememos/memos/api"
"github.com/usememos/memos/common"
)
// memoRaw is the store model for an Memo.
+3 -2
View File
@@ -3,8 +3,9 @@ package store
import (
"database/sql"
"fmt"
"memos/api"
"memos/common"
"github.com/usememos/memos/api"
"github.com/usememos/memos/common"
)
// memoOrganizerRaw is the store model for an MemoOrganizer.
+3 -2
View File
@@ -3,9 +3,10 @@ package store
import (
"database/sql"
"fmt"
"memos/api"
"memos/common"
"strings"
"github.com/usememos/memos/api"
"github.com/usememos/memos/common"
)
// resourceRaw is the store model for an Resource.
+3 -2
View File
@@ -3,9 +3,10 @@ package store
import (
"database/sql"
"fmt"
"memos/api"
"memos/common"
"strings"
"github.com/usememos/memos/api"
"github.com/usememos/memos/common"
)
// shortcutRaw is the store model for an Shortcut.
+2 -1
View File
@@ -2,7 +2,8 @@ package store
import (
"database/sql"
"memos/server/profile"
"github.com/usememos/memos/server/profile"
)
// Store provides database access to all raw objects
+3 -2
View File
@@ -3,9 +3,10 @@ package store
import (
"database/sql"
"fmt"
"memos/api"
"memos/common"
"strings"
"github.com/usememos/memos/api"
"github.com/usememos/memos/common"
)
// userRaw is the store model for an User.