trans to private
This commit is contained in:
parent
dd46edb310
commit
304517e241
9
.github/workflows/docker.yml
vendored
9
.github/workflows/docker.yml
vendored
@ -17,8 +17,7 @@ jobs:
|
||||
uses: docker/metadata-action@v5
|
||||
with:
|
||||
images: |
|
||||
nite07/pcgamedb
|
||||
git.drevox.top/code/pcgamedb
|
||||
git.nite07.com/nite07/pcgamedb
|
||||
tags: |
|
||||
type=semver,pattern={{version}}
|
||||
type=semver,pattern={{major}}.{{minor}}
|
||||
@ -30,12 +29,6 @@ jobs:
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Login to Docker Hub
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
|
||||
- name: Login to Gitea
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
|
@ -16,7 +16,7 @@ builds:
|
||||
- arm
|
||||
- "386"
|
||||
ldflags:
|
||||
- -s -w -X github.com/nitezs/pcgamedb/constant.Version={{ .Version }}
|
||||
- -s -w -X pcgamedb/constant.Version={{ .Version }}
|
||||
flags:
|
||||
- -trimpath
|
||||
archives:
|
||||
|
@ -14,7 +14,7 @@ ARG version=dev
|
||||
RUN if [ "$version" = "dev" ]; then \
|
||||
version=$(git describe --tags --always); \
|
||||
fi && \
|
||||
CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w -X github.com/nitezs/pcgamedb/constant.Version=${version}" -o pcgamedb .
|
||||
CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w -X pcgamedb/constant.Version=${version}" -o pcgamedb .
|
||||
|
||||
FROM alpine:latest
|
||||
WORKDIR /app
|
||||
|
2
build.sh
2
build.sh
@ -1,4 +1,4 @@
|
||||
go install github.com/swaggo/swag/cmd/swag@latest
|
||||
swag init
|
||||
CGO_ENABLED=0
|
||||
go build -o pcgamedb -ldflags "-s -w -X github.com/nitezs/pcgamedb/constant.Version=$(git describe --tags --always)" .
|
||||
go build -o pcgamedb -ldflags "-s -w -X pcgamedb/constant.Version=$(git describe --tags --always)" .
|
||||
|
4
cache/redis.go
vendored
4
cache/redis.go
vendored
@ -6,8 +6,8 @@ import (
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/nitezs/pcgamedb/config"
|
||||
"github.com/nitezs/pcgamedb/log"
|
||||
"pcgamedb/config"
|
||||
"pcgamedb/log"
|
||||
|
||||
"github.com/redis/go-redis/v9"
|
||||
)
|
||||
|
@ -1,8 +1,8 @@
|
||||
package cmd
|
||||
|
||||
import (
|
||||
"github.com/nitezs/pcgamedb/log"
|
||||
"github.com/nitezs/pcgamedb/task"
|
||||
"pcgamedb/log"
|
||||
"pcgamedb/task"
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
@ -6,9 +6,9 @@ import (
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/nitezs/pcgamedb/crawler"
|
||||
"github.com/nitezs/pcgamedb/log"
|
||||
"github.com/nitezs/pcgamedb/utils"
|
||||
"pcgamedb/crawler"
|
||||
"pcgamedb/log"
|
||||
"pcgamedb/utils"
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
"go.uber.org/zap"
|
||||
|
@ -4,8 +4,8 @@ import (
|
||||
"os"
|
||||
"path/filepath"
|
||||
|
||||
"github.com/nitezs/pcgamedb/db"
|
||||
"github.com/nitezs/pcgamedb/log"
|
||||
"pcgamedb/db"
|
||||
"pcgamedb/log"
|
||||
"go.uber.org/zap"
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
|
@ -3,9 +3,9 @@ package cmd
|
||||
import (
|
||||
"strings"
|
||||
|
||||
"github.com/nitezs/pcgamedb/crawler"
|
||||
"github.com/nitezs/pcgamedb/db"
|
||||
"github.com/nitezs/pcgamedb/log"
|
||||
"pcgamedb/crawler"
|
||||
"pcgamedb/db"
|
||||
"pcgamedb/log"
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
"go.uber.org/zap"
|
||||
|
@ -1,8 +1,8 @@
|
||||
package cmd
|
||||
|
||||
import (
|
||||
"github.com/nitezs/pcgamedb/db"
|
||||
"github.com/nitezs/pcgamedb/log"
|
||||
"pcgamedb/db"
|
||||
"pcgamedb/log"
|
||||
"github.com/spf13/cobra"
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
@ -1,8 +1,8 @@
|
||||
package cmd
|
||||
|
||||
import (
|
||||
"github.com/nitezs/pcgamedb/db"
|
||||
"github.com/nitezs/pcgamedb/log"
|
||||
"pcgamedb/db"
|
||||
"pcgamedb/log"
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
"go.uber.org/zap"
|
||||
|
@ -1,9 +1,9 @@
|
||||
package cmd
|
||||
|
||||
import (
|
||||
"github.com/nitezs/pcgamedb/crawler"
|
||||
"github.com/nitezs/pcgamedb/db"
|
||||
"github.com/nitezs/pcgamedb/log"
|
||||
"pcgamedb/crawler"
|
||||
"pcgamedb/db"
|
||||
"pcgamedb/log"
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
"go.uber.org/zap"
|
||||
|
@ -4,9 +4,9 @@ import (
|
||||
"encoding/json"
|
||||
"os"
|
||||
|
||||
"github.com/nitezs/pcgamedb/crawler"
|
||||
"github.com/nitezs/pcgamedb/db"
|
||||
"github.com/nitezs/pcgamedb/log"
|
||||
"pcgamedb/crawler"
|
||||
"pcgamedb/db"
|
||||
"pcgamedb/log"
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
"go.mongodb.org/mongo-driver/bson/primitive"
|
||||
|
@ -1,8 +1,8 @@
|
||||
package cmd
|
||||
|
||||
import (
|
||||
"github.com/nitezs/pcgamedb/config"
|
||||
"github.com/nitezs/pcgamedb/server"
|
||||
"pcgamedb/config"
|
||||
"pcgamedb/server"
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
@ -1,8 +1,8 @@
|
||||
package cmd
|
||||
|
||||
import (
|
||||
"github.com/nitezs/pcgamedb/crawler"
|
||||
"github.com/nitezs/pcgamedb/log"
|
||||
"pcgamedb/crawler"
|
||||
"pcgamedb/log"
|
||||
"go.uber.org/zap"
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
|
@ -1,8 +1,8 @@
|
||||
package cmd
|
||||
|
||||
import (
|
||||
"github.com/nitezs/pcgamedb/log"
|
||||
"github.com/nitezs/pcgamedb/task"
|
||||
"pcgamedb/log"
|
||||
"pcgamedb/task"
|
||||
|
||||
"github.com/robfig/cron/v3"
|
||||
"github.com/spf13/cobra"
|
||||
|
@ -1,9 +1,9 @@
|
||||
package cmd
|
||||
|
||||
import (
|
||||
"github.com/nitezs/pcgamedb/crawler"
|
||||
"github.com/nitezs/pcgamedb/db"
|
||||
"github.com/nitezs/pcgamedb/log"
|
||||
"pcgamedb/crawler"
|
||||
"pcgamedb/db"
|
||||
"pcgamedb/log"
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
"go.mongodb.org/mongo-driver/bson/primitive"
|
||||
|
@ -4,7 +4,7 @@ import (
|
||||
"fmt"
|
||||
"runtime"
|
||||
|
||||
"github.com/nitezs/pcgamedb/constant"
|
||||
"pcgamedb/constant"
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
@ -8,10 +8,10 @@ import (
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/nitezs/pcgamedb/constant"
|
||||
"github.com/nitezs/pcgamedb/db"
|
||||
"github.com/nitezs/pcgamedb/model"
|
||||
"github.com/nitezs/pcgamedb/utils"
|
||||
"pcgamedb/constant"
|
||||
"pcgamedb/db"
|
||||
"pcgamedb/model"
|
||||
"pcgamedb/utils"
|
||||
|
||||
"github.com/PuerkitoBio/goquery"
|
||||
"go.uber.org/zap"
|
||||
|
@ -11,9 +11,9 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/nitezs/pcgamedb/db"
|
||||
"github.com/nitezs/pcgamedb/model"
|
||||
"github.com/nitezs/pcgamedb/utils"
|
||||
"pcgamedb/db"
|
||||
"pcgamedb/model"
|
||||
"pcgamedb/utils"
|
||||
|
||||
"github.com/jlaffaye/ftp"
|
||||
"go.uber.org/zap"
|
||||
|
@ -7,10 +7,10 @@ import (
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/nitezs/pcgamedb/constant"
|
||||
"github.com/nitezs/pcgamedb/db"
|
||||
"github.com/nitezs/pcgamedb/model"
|
||||
"github.com/nitezs/pcgamedb/utils"
|
||||
"pcgamedb/constant"
|
||||
"pcgamedb/db"
|
||||
"pcgamedb/model"
|
||||
"pcgamedb/utils"
|
||||
|
||||
"github.com/PuerkitoBio/goquery"
|
||||
"go.uber.org/zap"
|
||||
|
@ -1,7 +1,7 @@
|
||||
package crawler
|
||||
|
||||
import (
|
||||
"github.com/nitezs/pcgamedb/model"
|
||||
"pcgamedb/model"
|
||||
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
@ -4,8 +4,8 @@ import (
|
||||
"regexp"
|
||||
"strings"
|
||||
|
||||
"github.com/nitezs/pcgamedb/model"
|
||||
"github.com/nitezs/pcgamedb/utils"
|
||||
"pcgamedb/model"
|
||||
"pcgamedb/utils"
|
||||
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
@ -8,10 +8,10 @@ import (
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/nitezs/pcgamedb/constant"
|
||||
"github.com/nitezs/pcgamedb/db"
|
||||
"github.com/nitezs/pcgamedb/model"
|
||||
"github.com/nitezs/pcgamedb/utils"
|
||||
"pcgamedb/constant"
|
||||
"pcgamedb/db"
|
||||
"pcgamedb/model"
|
||||
"pcgamedb/utils"
|
||||
|
||||
"github.com/PuerkitoBio/goquery"
|
||||
"go.uber.org/zap"
|
||||
|
@ -8,11 +8,11 @@ import (
|
||||
"regexp"
|
||||
"strings"
|
||||
|
||||
"github.com/nitezs/pcgamedb/config"
|
||||
"github.com/nitezs/pcgamedb/constant"
|
||||
"github.com/nitezs/pcgamedb/db"
|
||||
"github.com/nitezs/pcgamedb/model"
|
||||
"github.com/nitezs/pcgamedb/utils"
|
||||
"pcgamedb/config"
|
||||
"pcgamedb/constant"
|
||||
"pcgamedb/db"
|
||||
"pcgamedb/model"
|
||||
"pcgamedb/utils"
|
||||
|
||||
"github.com/PuerkitoBio/goquery"
|
||||
"go.uber.org/zap"
|
||||
|
@ -6,9 +6,9 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/nitezs/pcgamedb/db"
|
||||
"github.com/nitezs/pcgamedb/model"
|
||||
"github.com/nitezs/pcgamedb/utils"
|
||||
"pcgamedb/db"
|
||||
"pcgamedb/model"
|
||||
"pcgamedb/utils"
|
||||
"go.uber.org/zap"
|
||||
|
||||
"go.mongodb.org/mongo-driver/bson/primitive"
|
||||
|
@ -5,10 +5,10 @@ import (
|
||||
"regexp"
|
||||
"strings"
|
||||
|
||||
"github.com/nitezs/pcgamedb/constant"
|
||||
"github.com/nitezs/pcgamedb/db"
|
||||
"github.com/nitezs/pcgamedb/model"
|
||||
"github.com/nitezs/pcgamedb/utils"
|
||||
"pcgamedb/constant"
|
||||
"pcgamedb/db"
|
||||
"pcgamedb/model"
|
||||
"pcgamedb/utils"
|
||||
|
||||
"github.com/PuerkitoBio/goquery"
|
||||
"go.uber.org/zap"
|
||||
|
@ -6,11 +6,11 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/nitezs/pcgamedb/config"
|
||||
"github.com/nitezs/pcgamedb/constant"
|
||||
"github.com/nitezs/pcgamedb/db"
|
||||
"github.com/nitezs/pcgamedb/model"
|
||||
"github.com/nitezs/pcgamedb/utils"
|
||||
"pcgamedb/config"
|
||||
"pcgamedb/constant"
|
||||
"pcgamedb/db"
|
||||
"pcgamedb/model"
|
||||
"pcgamedb/utils"
|
||||
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
@ -10,12 +10,12 @@ import (
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/nitezs/pcgamedb/cache"
|
||||
"github.com/nitezs/pcgamedb/config"
|
||||
"github.com/nitezs/pcgamedb/constant"
|
||||
"github.com/nitezs/pcgamedb/db"
|
||||
"github.com/nitezs/pcgamedb/model"
|
||||
"github.com/nitezs/pcgamedb/utils"
|
||||
"pcgamedb/cache"
|
||||
"pcgamedb/config"
|
||||
"pcgamedb/constant"
|
||||
"pcgamedb/db"
|
||||
"pcgamedb/model"
|
||||
"pcgamedb/utils"
|
||||
)
|
||||
|
||||
var TwitchToken string
|
||||
|
@ -4,7 +4,7 @@ import (
|
||||
"regexp"
|
||||
"strings"
|
||||
|
||||
"github.com/nitezs/pcgamedb/model"
|
||||
"pcgamedb/model"
|
||||
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
@ -11,11 +11,11 @@ import (
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/nitezs/pcgamedb/config"
|
||||
"github.com/nitezs/pcgamedb/constant"
|
||||
"github.com/nitezs/pcgamedb/db"
|
||||
"github.com/nitezs/pcgamedb/model"
|
||||
"github.com/nitezs/pcgamedb/utils"
|
||||
"pcgamedb/config"
|
||||
"pcgamedb/constant"
|
||||
"pcgamedb/db"
|
||||
"pcgamedb/model"
|
||||
"pcgamedb/utils"
|
||||
|
||||
"github.com/PuerkitoBio/goquery"
|
||||
"go.uber.org/zap"
|
||||
|
@ -9,12 +9,12 @@ import (
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/nitezs/pcgamedb/cache"
|
||||
"github.com/nitezs/pcgamedb/config"
|
||||
"github.com/nitezs/pcgamedb/constant"
|
||||
"github.com/nitezs/pcgamedb/db"
|
||||
"github.com/nitezs/pcgamedb/model"
|
||||
"github.com/nitezs/pcgamedb/utils"
|
||||
"pcgamedb/cache"
|
||||
"pcgamedb/config"
|
||||
"pcgamedb/constant"
|
||||
"pcgamedb/db"
|
||||
"pcgamedb/model"
|
||||
"pcgamedb/utils"
|
||||
)
|
||||
|
||||
func _GetSteamID(name string) (int, error) {
|
||||
|
@ -8,12 +8,12 @@ import (
|
||||
"strconv"
|
||||
"time"
|
||||
|
||||
"github.com/nitezs/pcgamedb/cache"
|
||||
"github.com/nitezs/pcgamedb/config"
|
||||
"github.com/nitezs/pcgamedb/constant"
|
||||
"github.com/nitezs/pcgamedb/db"
|
||||
"github.com/nitezs/pcgamedb/model"
|
||||
"github.com/nitezs/pcgamedb/utils"
|
||||
"pcgamedb/cache"
|
||||
"pcgamedb/config"
|
||||
"pcgamedb/constant"
|
||||
"pcgamedb/db"
|
||||
"pcgamedb/model"
|
||||
"pcgamedb/utils"
|
||||
|
||||
"github.com/PuerkitoBio/goquery"
|
||||
)
|
||||
|
@ -7,10 +7,10 @@ import (
|
||||
"regexp"
|
||||
"strings"
|
||||
|
||||
"github.com/nitezs/pcgamedb/constant"
|
||||
"github.com/nitezs/pcgamedb/db"
|
||||
"github.com/nitezs/pcgamedb/model"
|
||||
"github.com/nitezs/pcgamedb/utils"
|
||||
"pcgamedb/constant"
|
||||
"pcgamedb/db"
|
||||
"pcgamedb/model"
|
||||
"pcgamedb/utils"
|
||||
|
||||
"github.com/PuerkitoBio/goquery"
|
||||
"go.uber.org/zap"
|
||||
|
@ -8,10 +8,10 @@ import (
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/nitezs/pcgamedb/constant"
|
||||
"github.com/nitezs/pcgamedb/db"
|
||||
"github.com/nitezs/pcgamedb/model"
|
||||
"github.com/nitezs/pcgamedb/utils"
|
||||
"pcgamedb/constant"
|
||||
"pcgamedb/db"
|
||||
"pcgamedb/model"
|
||||
"pcgamedb/utils"
|
||||
|
||||
"github.com/PuerkitoBio/goquery"
|
||||
"go.uber.org/zap"
|
||||
|
@ -1,7 +1,7 @@
|
||||
package db
|
||||
|
||||
import (
|
||||
"github.com/nitezs/pcgamedb/model"
|
||||
"pcgamedb/model"
|
||||
)
|
||||
|
||||
func GetDODIGameItems() ([]*model.GameItem, error) {
|
||||
|
@ -1,6 +1,6 @@
|
||||
package db
|
||||
|
||||
import "github.com/nitezs/pcgamedb/model"
|
||||
import "pcgamedb/model"
|
||||
|
||||
func IsARMGDDNCrawled(flag string) bool {
|
||||
return IsGameCrawled(flag, "armgddn")
|
||||
|
@ -3,7 +3,7 @@ package db
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/nitezs/pcgamedb/config"
|
||||
"pcgamedb/config"
|
||||
|
||||
"go.mongodb.org/mongo-driver/mongo"
|
||||
"go.mongodb.org/mongo-driver/mongo/options"
|
||||
|
4
db/db.go
4
db/db.go
@ -6,8 +6,8 @@ import (
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/nitezs/pcgamedb/config"
|
||||
"github.com/nitezs/pcgamedb/log"
|
||||
"pcgamedb/config"
|
||||
"pcgamedb/log"
|
||||
|
||||
"go.mongodb.org/mongo-driver/bson"
|
||||
"go.mongodb.org/mongo-driver/mongo"
|
||||
|
@ -5,7 +5,7 @@ import (
|
||||
"encoding/json"
|
||||
"time"
|
||||
|
||||
"github.com/nitezs/pcgamedb/model"
|
||||
"pcgamedb/model"
|
||||
"go.mongodb.org/mongo-driver/bson"
|
||||
)
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
package db
|
||||
|
||||
import "github.com/nitezs/pcgamedb/model"
|
||||
import "pcgamedb/model"
|
||||
|
||||
func GetFitgirlAllGameItems() ([]*model.GameItem, error) {
|
||||
return GetGameItemsByAuthor("fitgirl")
|
||||
|
@ -1,7 +1,7 @@
|
||||
package db
|
||||
|
||||
import (
|
||||
"github.com/nitezs/pcgamedb/model"
|
||||
"pcgamedb/model"
|
||||
)
|
||||
|
||||
func GetFreeGOGGameItems() ([]*model.GameItem, error) {
|
||||
|
@ -10,9 +10,9 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/nitezs/pcgamedb/cache"
|
||||
"github.com/nitezs/pcgamedb/config"
|
||||
"github.com/nitezs/pcgamedb/model"
|
||||
"pcgamedb/cache"
|
||||
"pcgamedb/config"
|
||||
"pcgamedb/model"
|
||||
|
||||
"go.mongodb.org/mongo-driver/bson"
|
||||
"go.mongodb.org/mongo-driver/bson/primitive"
|
||||
|
@ -5,7 +5,7 @@ import (
|
||||
"encoding/json"
|
||||
"os"
|
||||
|
||||
"github.com/nitezs/pcgamedb/model"
|
||||
"pcgamedb/model"
|
||||
)
|
||||
|
||||
func ImportGameInfo(filePath string) error {
|
||||
|
@ -1,7 +1,7 @@
|
||||
package db
|
||||
|
||||
import (
|
||||
"github.com/nitezs/pcgamedb/model"
|
||||
"pcgamedb/model"
|
||||
)
|
||||
|
||||
func GetOnlineFixGameItems() ([]*model.GameItem, error) {
|
||||
|
@ -1,7 +1,7 @@
|
||||
package db
|
||||
|
||||
import (
|
||||
"github.com/nitezs/pcgamedb/model"
|
||||
"pcgamedb/model"
|
||||
)
|
||||
|
||||
func GetXatabGameItems() ([]*model.GameItem, error) {
|
||||
|
@ -4,7 +4,7 @@ import (
|
||||
"os"
|
||||
"strings"
|
||||
|
||||
"github.com/nitezs/pcgamedb/config"
|
||||
"pcgamedb/config"
|
||||
|
||||
"go.uber.org/zap"
|
||||
"go.uber.org/zap/zapcore"
|
||||
|
4
main.go
4
main.go
@ -3,8 +3,8 @@ package main
|
||||
import (
|
||||
"strings"
|
||||
|
||||
"github.com/nitezs/pcgamedb/cmd"
|
||||
"github.com/nitezs/pcgamedb/log"
|
||||
"pcgamedb/cmd"
|
||||
"pcgamedb/log"
|
||||
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
@ -3,8 +3,8 @@ package handler
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"github.com/nitezs/pcgamedb/log"
|
||||
"github.com/nitezs/pcgamedb/task"
|
||||
"pcgamedb/log"
|
||||
"pcgamedb/task"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
@ -3,7 +3,7 @@ package handler
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"github.com/nitezs/pcgamedb/db"
|
||||
"pcgamedb/db"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
"go.mongodb.org/mongo-driver/bson/primitive"
|
||||
|
@ -3,7 +3,7 @@ package handler
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"github.com/nitezs/pcgamedb/db"
|
||||
"pcgamedb/db"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
@ -3,8 +3,8 @@ package handler
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"github.com/nitezs/pcgamedb/db"
|
||||
"github.com/nitezs/pcgamedb/model"
|
||||
"pcgamedb/db"
|
||||
"pcgamedb/model"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
@ -3,8 +3,8 @@ package handler
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"github.com/nitezs/pcgamedb/db"
|
||||
"github.com/nitezs/pcgamedb/model"
|
||||
"pcgamedb/db"
|
||||
"pcgamedb/model"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
"go.mongodb.org/mongo-driver/bson/primitive"
|
||||
|
@ -3,8 +3,8 @@ package handler
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"github.com/nitezs/pcgamedb/db"
|
||||
"github.com/nitezs/pcgamedb/model"
|
||||
"pcgamedb/db"
|
||||
"pcgamedb/model"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
"go.mongodb.org/mongo-driver/mongo"
|
||||
|
@ -3,8 +3,8 @@ package handler
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"github.com/nitezs/pcgamedb/db"
|
||||
"github.com/nitezs/pcgamedb/model"
|
||||
"pcgamedb/db"
|
||||
"pcgamedb/model"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
"go.mongodb.org/mongo-driver/bson/primitive"
|
||||
|
@ -3,8 +3,8 @@ package handler
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"github.com/nitezs/pcgamedb/db"
|
||||
"github.com/nitezs/pcgamedb/model"
|
||||
"pcgamedb/db"
|
||||
"pcgamedb/model"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
"go.mongodb.org/mongo-driver/mongo"
|
||||
|
@ -3,8 +3,8 @@ package handler
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"github.com/nitezs/pcgamedb/db"
|
||||
"github.com/nitezs/pcgamedb/model"
|
||||
"pcgamedb/db"
|
||||
"pcgamedb/model"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
@ -3,8 +3,8 @@ package handler
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"github.com/nitezs/pcgamedb/crawler"
|
||||
"github.com/nitezs/pcgamedb/model"
|
||||
"pcgamedb/crawler"
|
||||
"pcgamedb/model"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
@ -3,8 +3,8 @@ package handler
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"github.com/nitezs/pcgamedb/db"
|
||||
"github.com/nitezs/pcgamedb/model"
|
||||
"pcgamedb/db"
|
||||
"pcgamedb/model"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
@ -6,9 +6,9 @@ import (
|
||||
"runtime"
|
||||
"time"
|
||||
|
||||
"github.com/nitezs/pcgamedb/config"
|
||||
"github.com/nitezs/pcgamedb/constant"
|
||||
"github.com/nitezs/pcgamedb/db"
|
||||
"pcgamedb/config"
|
||||
"pcgamedb/constant"
|
||||
"pcgamedb/db"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
@ -3,8 +3,8 @@ package handler
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"github.com/nitezs/pcgamedb/crawler"
|
||||
"github.com/nitezs/pcgamedb/model"
|
||||
"pcgamedb/crawler"
|
||||
"pcgamedb/model"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
"go.mongodb.org/mongo-driver/bson/primitive"
|
||||
|
@ -3,8 +3,8 @@ package handler
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"github.com/nitezs/pcgamedb/db"
|
||||
"github.com/nitezs/pcgamedb/model"
|
||||
"pcgamedb/db"
|
||||
"pcgamedb/model"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
@ -4,9 +4,9 @@ import (
|
||||
"net/http"
|
||||
"strings"
|
||||
|
||||
"github.com/nitezs/pcgamedb/crawler"
|
||||
"github.com/nitezs/pcgamedb/db"
|
||||
"github.com/nitezs/pcgamedb/model"
|
||||
"pcgamedb/crawler"
|
||||
"pcgamedb/db"
|
||||
"pcgamedb/model"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
"go.mongodb.org/mongo-driver/bson/primitive"
|
||||
|
@ -4,7 +4,7 @@ import (
|
||||
"net/http"
|
||||
"strings"
|
||||
|
||||
"github.com/nitezs/pcgamedb/config"
|
||||
"pcgamedb/config"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
@ -5,7 +5,7 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/nitezs/pcgamedb/log"
|
||||
"pcgamedb/log"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
"go.uber.org/zap"
|
||||
|
@ -3,7 +3,7 @@ package middleware
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"github.com/nitezs/pcgamedb/log"
|
||||
"pcgamedb/log"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
"go.uber.org/zap"
|
||||
|
@ -1,13 +1,13 @@
|
||||
package server
|
||||
|
||||
import (
|
||||
"github.com/nitezs/pcgamedb/server/handler"
|
||||
"github.com/nitezs/pcgamedb/server/middleware"
|
||||
"pcgamedb/server/handler"
|
||||
"pcgamedb/server/middleware"
|
||||
|
||||
"github.com/gin-contrib/cors"
|
||||
"github.com/gin-gonic/gin"
|
||||
|
||||
docs "github.com/nitezs/pcgamedb/docs"
|
||||
docs "pcgamedb/docs"
|
||||
|
||||
swaggerfiles "github.com/swaggo/files"
|
||||
ginSwagger "github.com/swaggo/gin-swagger"
|
||||
|
@ -4,12 +4,12 @@ import (
|
||||
"io"
|
||||
"time"
|
||||
|
||||
"github.com/nitezs/pcgamedb/cache"
|
||||
"github.com/nitezs/pcgamedb/config"
|
||||
"github.com/nitezs/pcgamedb/db"
|
||||
"github.com/nitezs/pcgamedb/log"
|
||||
"github.com/nitezs/pcgamedb/server/middleware"
|
||||
"github.com/nitezs/pcgamedb/task"
|
||||
"pcgamedb/cache"
|
||||
"pcgamedb/config"
|
||||
"pcgamedb/db"
|
||||
"pcgamedb/log"
|
||||
"pcgamedb/server/middleware"
|
||||
"pcgamedb/task"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/robfig/cron/v3"
|
||||
|
@ -1,7 +1,7 @@
|
||||
package task
|
||||
|
||||
import (
|
||||
"github.com/nitezs/pcgamedb/db"
|
||||
"pcgamedb/db"
|
||||
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
@ -4,11 +4,11 @@ import (
|
||||
"net/http"
|
||||
"net/url"
|
||||
|
||||
"github.com/nitezs/pcgamedb/config"
|
||||
"github.com/nitezs/pcgamedb/crawler"
|
||||
"github.com/nitezs/pcgamedb/db"
|
||||
"github.com/nitezs/pcgamedb/model"
|
||||
"github.com/nitezs/pcgamedb/utils"
|
||||
"pcgamedb/config"
|
||||
"pcgamedb/crawler"
|
||||
"pcgamedb/db"
|
||||
"pcgamedb/model"
|
||||
"pcgamedb/utils"
|
||||
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user