diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index e580d7e..fde8213 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -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: diff --git a/.goreleaser.yaml b/.goreleaser.yaml index b1c0834..e8a404c 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -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: diff --git a/Dockerfile b/Dockerfile index 968eecd..f2164b4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/build.sh b/build.sh index e125816..f452591 100755 --- a/build.sh +++ b/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)" . diff --git a/cache/redis.go b/cache/redis.go index 6e528e2..b109093 100644 --- a/cache/redis.go +++ b/cache/redis.go @@ -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" ) diff --git a/cmd/clean.go b/cmd/clean.go index 370b341..fad92ae 100644 --- a/cmd/clean.go +++ b/cmd/clean.go @@ -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" ) diff --git a/cmd/crawl.go b/cmd/crawl.go index 35e5a85..7d2dc23 100644 --- a/cmd/crawl.go +++ b/cmd/crawl.go @@ -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" diff --git a/cmd/export.go b/cmd/export.go index 88e3fe9..2107514 100644 --- a/cmd/export.go +++ b/cmd/export.go @@ -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" diff --git a/cmd/format.go b/cmd/format.go index bf80e84..fa1e18e 100644 --- a/cmd/format.go +++ b/cmd/format.go @@ -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" diff --git a/cmd/import.go b/cmd/import.go index 978d9b7..7a50685 100644 --- a/cmd/import.go +++ b/cmd/import.go @@ -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" ) diff --git a/cmd/list.go b/cmd/list.go index 1acc59a..1b62f1d 100644 --- a/cmd/list.go +++ b/cmd/list.go @@ -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" diff --git a/cmd/organize.go b/cmd/organize.go index 276e9b3..d675969 100644 --- a/cmd/organize.go +++ b/cmd/organize.go @@ -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" diff --git a/cmd/organize_manually.go b/cmd/organize_manually.go index f706365..0e97ac8 100644 --- a/cmd/organize_manually.go +++ b/cmd/organize_manually.go @@ -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" diff --git a/cmd/server.go b/cmd/server.go index 06b0df5..a9fb40b 100644 --- a/cmd/server.go +++ b/cmd/server.go @@ -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" ) diff --git a/cmd/supplement.go b/cmd/supplement.go index b2b4154..131eee5 100644 --- a/cmd/supplement.go +++ b/cmd/supplement.go @@ -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" diff --git a/cmd/task.go b/cmd/task.go index 7eb2597..75f55ae 100644 --- a/cmd/task.go +++ b/cmd/task.go @@ -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" diff --git a/cmd/update.go b/cmd/update.go index 80d50ea..258eaa2 100644 --- a/cmd/update.go +++ b/cmd/update.go @@ -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" diff --git a/cmd/version.go b/cmd/version.go index 82f64ef..b5c016e 100644 --- a/cmd/version.go +++ b/cmd/version.go @@ -4,7 +4,7 @@ import ( "fmt" "runtime" - "github.com/nitezs/pcgamedb/constant" + "pcgamedb/constant" "github.com/spf13/cobra" ) diff --git a/crawler/1337x.go b/crawler/1337x.go index 74f1323..6d24be5 100644 --- a/crawler/1337x.go +++ b/crawler/1337x.go @@ -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" diff --git a/crawler/armgddn.go b/crawler/armgddn.go index b50dee6..de8aaef 100644 --- a/crawler/armgddn.go +++ b/crawler/armgddn.go @@ -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" diff --git a/crawler/chovka.go b/crawler/chovka.go index 96797f5..8cbb616 100644 --- a/crawler/chovka.go +++ b/crawler/chovka.go @@ -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" diff --git a/crawler/crawler.go b/crawler/crawler.go index 74c2231..c596a43 100644 --- a/crawler/crawler.go +++ b/crawler/crawler.go @@ -1,7 +1,7 @@ package crawler import ( - "github.com/nitezs/pcgamedb/model" + "pcgamedb/model" "go.uber.org/zap" ) diff --git a/crawler/dodi.go b/crawler/dodi.go index 7b696f3..1a5444e 100644 --- a/crawler/dodi.go +++ b/crawler/dodi.go @@ -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" ) diff --git a/crawler/fitgirl.go b/crawler/fitgirl.go index dea011d..357d2d6 100644 --- a/crawler/fitgirl.go +++ b/crawler/fitgirl.go @@ -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" diff --git a/crawler/freegog.go b/crawler/freegog.go index e6335cc..d5274c3 100644 --- a/crawler/freegog.go +++ b/crawler/freegog.go @@ -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" diff --git a/crawler/game.go b/crawler/game.go index 6205a9f..3402774 100644 --- a/crawler/game.go +++ b/crawler/game.go @@ -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" diff --git a/crawler/gnarly.go b/crawler/gnarly.go index c5103e3..c4868d0 100644 --- a/crawler/gnarly.go +++ b/crawler/gnarly.go @@ -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" diff --git a/crawler/goggames.go b/crawler/goggames.go index 5409347..4ba5cbe 100644 --- a/crawler/goggames.go +++ b/crawler/goggames.go @@ -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" ) diff --git a/crawler/igdb.go b/crawler/igdb.go index b174fd2..5631981 100644 --- a/crawler/igdb.go +++ b/crawler/igdb.go @@ -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 diff --git a/crawler/kaoskrew.go b/crawler/kaoskrew.go index a917454..c750283 100644 --- a/crawler/kaoskrew.go +++ b/crawler/kaoskrew.go @@ -4,7 +4,7 @@ import ( "regexp" "strings" - "github.com/nitezs/pcgamedb/model" + "pcgamedb/model" "go.uber.org/zap" ) diff --git a/crawler/onlinefix.go b/crawler/onlinefix.go index b8481d1..a11fddf 100644 --- a/crawler/onlinefix.go +++ b/crawler/onlinefix.go @@ -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" diff --git a/crawler/steam.go b/crawler/steam.go index 8441598..759e8fa 100644 --- a/crawler/steam.go +++ b/crawler/steam.go @@ -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) { diff --git a/crawler/steam250.go b/crawler/steam250.go index 9d4c10e..d99f1da 100644 --- a/crawler/steam250.go +++ b/crawler/steam250.go @@ -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" ) diff --git a/crawler/steamrip.go b/crawler/steamrip.go index bf7e0f6..6bbfbd1 100644 --- a/crawler/steamrip.go +++ b/crawler/steamrip.go @@ -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" diff --git a/crawler/xatab.go b/crawler/xatab.go index 264b6b8..7a5aef1 100644 --- a/crawler/xatab.go +++ b/crawler/xatab.go @@ -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" diff --git a/db/1337x.go b/db/1337x.go index 82f536b..4eb7555 100644 --- a/db/1337x.go +++ b/db/1337x.go @@ -1,7 +1,7 @@ package db import ( - "github.com/nitezs/pcgamedb/model" + "pcgamedb/model" ) func GetDODIGameItems() ([]*model.GameItem, error) { diff --git a/db/armgddn.go b/db/armgddn.go index a9f30ce..247d186 100644 --- a/db/armgddn.go +++ b/db/armgddn.go @@ -1,6 +1,6 @@ package db -import "github.com/nitezs/pcgamedb/model" +import "pcgamedb/model" func IsARMGDDNCrawled(flag string) bool { return IsGameCrawled(flag, "armgddn") diff --git a/db/custom_collection.go b/db/custom_collection.go index 082e70f..ae95985 100644 --- a/db/custom_collection.go +++ b/db/custom_collection.go @@ -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" diff --git a/db/db.go b/db/db.go index f70d83a..617abd8 100644 --- a/db/db.go +++ b/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" diff --git a/db/export.go b/db/export.go index 9dbb763..a535d27 100644 --- a/db/export.go +++ b/db/export.go @@ -5,7 +5,7 @@ import ( "encoding/json" "time" - "github.com/nitezs/pcgamedb/model" + "pcgamedb/model" "go.mongodb.org/mongo-driver/bson" ) diff --git a/db/fitgirl.go b/db/fitgirl.go index 63e7496..0114904 100644 --- a/db/fitgirl.go +++ b/db/fitgirl.go @@ -1,6 +1,6 @@ package db -import "github.com/nitezs/pcgamedb/model" +import "pcgamedb/model" func GetFitgirlAllGameItems() ([]*model.GameItem, error) { return GetGameItemsByAuthor("fitgirl") diff --git a/db/freegog.go b/db/freegog.go index 3f8439a..0727097 100644 --- a/db/freegog.go +++ b/db/freegog.go @@ -1,7 +1,7 @@ package db import ( - "github.com/nitezs/pcgamedb/model" + "pcgamedb/model" ) func GetFreeGOGGameItems() ([]*model.GameItem, error) { diff --git a/db/game.go b/db/game.go index d779432..e15f330 100644 --- a/db/game.go +++ b/db/game.go @@ -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" diff --git a/db/import.go b/db/import.go index e8c273a..fb59bc9 100644 --- a/db/import.go +++ b/db/import.go @@ -5,7 +5,7 @@ import ( "encoding/json" "os" - "github.com/nitezs/pcgamedb/model" + "pcgamedb/model" ) func ImportGameInfo(filePath string) error { diff --git a/db/onlinefix.go b/db/onlinefix.go index 9475993..bbe5134 100644 --- a/db/onlinefix.go +++ b/db/onlinefix.go @@ -1,7 +1,7 @@ package db import ( - "github.com/nitezs/pcgamedb/model" + "pcgamedb/model" ) func GetOnlineFixGameItems() ([]*model.GameItem, error) { diff --git a/db/xatab.go b/db/xatab.go index 1604a27..8de9d90 100644 --- a/db/xatab.go +++ b/db/xatab.go @@ -1,7 +1,7 @@ package db import ( - "github.com/nitezs/pcgamedb/model" + "pcgamedb/model" ) func GetXatabGameItems() ([]*model.GameItem, error) { diff --git a/go.mod b/go.mod index 5ef1077..d4789b9 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/nitezs/pcgamedb +module pcgamedb go 1.23 diff --git a/log/log.go b/log/log.go index f5bb157..9583fb2 100644 --- a/log/log.go +++ b/log/log.go @@ -4,7 +4,7 @@ import ( "os" "strings" - "github.com/nitezs/pcgamedb/config" + "pcgamedb/config" "go.uber.org/zap" "go.uber.org/zap/zapcore" diff --git a/main.go b/main.go index b8fa9b1..ad08caa 100644 --- a/main.go +++ b/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" ) diff --git a/server/handler/clean_game.go b/server/handler/clean_game.go index 8987581..6d0b98d 100644 --- a/server/handler/clean_game.go +++ b/server/handler/clean_game.go @@ -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" ) diff --git a/server/handler/delete_game_info.go b/server/handler/delete_game_info.go index 965d516..c3db9fd 100644 --- a/server/handler/delete_game_info.go +++ b/server/handler/delete_game_info.go @@ -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" diff --git a/server/handler/get_all_authors.go b/server/handler/get_all_authors.go index 5da93b2..63ea906 100644 --- a/server/handler/get_all_authors.go +++ b/server/handler/get_all_authors.go @@ -3,7 +3,7 @@ package handler import ( "net/http" - "github.com/nitezs/pcgamedb/db" + "pcgamedb/db" "github.com/gin-gonic/gin" ) diff --git a/server/handler/get_game_Infos_by_name.go b/server/handler/get_game_Infos_by_name.go index e75546e..123573e 100644 --- a/server/handler/get_game_Infos_by_name.go +++ b/server/handler/get_game_Infos_by_name.go @@ -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" ) diff --git a/server/handler/get_game_by_id.go b/server/handler/get_game_by_id.go index a18b850..7d67a50 100644 --- a/server/handler/get_game_by_id.go +++ b/server/handler/get_game_by_id.go @@ -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" diff --git a/server/handler/get_game_by_raw_name.go b/server/handler/get_game_by_raw_name.go index 938d0ad..4c6be85 100644 --- a/server/handler/get_game_by_raw_name.go +++ b/server/handler/get_game_by_raw_name.go @@ -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" diff --git a/server/handler/get_game_info_by_id.go b/server/handler/get_game_info_by_id.go index 5fcf180..bdc385f 100644 --- a/server/handler/get_game_info_by_id.go +++ b/server/handler/get_game_info_by_id.go @@ -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" diff --git a/server/handler/get_game_info_by_platform_id.go b/server/handler/get_game_info_by_platform_id.go index 399c5d1..d3c3132 100644 --- a/server/handler/get_game_info_by_platform_id.go +++ b/server/handler/get_game_info_by_platform_id.go @@ -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" diff --git a/server/handler/get_games_by_author.go b/server/handler/get_games_by_author.go index d4ce671..6f1f5f7 100644 --- a/server/handler/get_games_by_author.go +++ b/server/handler/get_games_by_author.go @@ -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" ) diff --git a/server/handler/get_ranking.go b/server/handler/get_ranking.go index a0d939e..dff04ba 100644 --- a/server/handler/get_ranking.go +++ b/server/handler/get_ranking.go @@ -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" ) diff --git a/server/handler/get_unorganized_games.go b/server/handler/get_unorganized_games.go index 6a70cfc..ab471d1 100644 --- a/server/handler/get_unorganized_games.go +++ b/server/handler/get_unorganized_games.go @@ -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" ) diff --git a/server/handler/healthcheck.go b/server/handler/healthcheck.go index d66b2b2..8775226 100644 --- a/server/handler/healthcheck.go +++ b/server/handler/healthcheck.go @@ -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" ) diff --git a/server/handler/organize_game_info.go b/server/handler/organize_game_info.go index cd0921f..f9cafce 100644 --- a/server/handler/organize_game_info.go +++ b/server/handler/organize_game_info.go @@ -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" diff --git a/server/handler/search_games.go b/server/handler/search_games.go index 44e719f..8825c22 100644 --- a/server/handler/search_games.go +++ b/server/handler/search_games.go @@ -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" ) diff --git a/server/handler/update_game_info.go b/server/handler/update_game_info.go index dfc9394..8e50680 100644 --- a/server/handler/update_game_info.go +++ b/server/handler/update_game_info.go @@ -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" diff --git a/server/middleware/auth.go b/server/middleware/auth.go index 962258d..1bc8d8f 100644 --- a/server/middleware/auth.go +++ b/server/middleware/auth.go @@ -4,7 +4,7 @@ import ( "net/http" "strings" - "github.com/nitezs/pcgamedb/config" + "pcgamedb/config" "github.com/gin-gonic/gin" ) diff --git a/server/middleware/log.go b/server/middleware/log.go index b977dba..77292ee 100644 --- a/server/middleware/log.go +++ b/server/middleware/log.go @@ -5,7 +5,7 @@ import ( "strings" "time" - "github.com/nitezs/pcgamedb/log" + "pcgamedb/log" "github.com/gin-gonic/gin" "go.uber.org/zap" diff --git a/server/middleware/recover.go b/server/middleware/recover.go index be8c0f2..88dd103 100644 --- a/server/middleware/recover.go +++ b/server/middleware/recover.go @@ -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" diff --git a/server/route.go b/server/route.go index d474010..d23e87a 100644 --- a/server/route.go +++ b/server/route.go @@ -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" diff --git a/server/server.go b/server/server.go index fa56af8..cfbb57a 100644 --- a/server/server.go +++ b/server/server.go @@ -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" diff --git a/task/clean.go b/task/clean.go index 27ddc8c..98c41ee 100644 --- a/task/clean.go +++ b/task/clean.go @@ -1,7 +1,7 @@ package task import ( - "github.com/nitezs/pcgamedb/db" + "pcgamedb/db" "go.uber.org/zap" ) diff --git a/task/crawl.go b/task/crawl.go index 8728212..9c2e087 100644 --- a/task/crawl.go +++ b/task/crawl.go @@ -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" )