chore: move to git.0x7f.app

This commit is contained in:
Paul Pan 2023-07-14 21:47:11 +08:00
parent 593e8eb92e
commit eca749e2c6
84 changed files with 441 additions and 819 deletions

View File

@ -1,7 +1,7 @@
package cmd package cmd
import ( import (
"github.com/WHUPRJ/woj-server/internal/global" "git.0x7f.app/WOJ/woj-server/internal/global"
"github.com/urfave/cli/v2" "github.com/urfave/cli/v2"
"log" "log"
"math/rand" "math/rand"

View File

@ -1,8 +1,8 @@
package main package main
import ( import (
"github.com/WHUPRJ/woj-server/cmd" "git.0x7f.app/WOJ/woj-server/cmd"
"github.com/WHUPRJ/woj-server/internal/app/runner" "git.0x7f.app/WOJ/woj-server/internal/app/runner"
"github.com/urfave/cli/v2" "github.com/urfave/cli/v2"
"log" "log"
"os" "os"

View File

@ -1,8 +1,8 @@
package main package main
import ( import (
"github.com/WHUPRJ/woj-server/cmd" "git.0x7f.app/WOJ/woj-server/cmd"
"github.com/WHUPRJ/woj-server/internal/app/server" "git.0x7f.app/WOJ/woj-server/internal/app/server"
"github.com/urfave/cli/v2" "github.com/urfave/cli/v2"
"log" "log"
"os" "os"

125
go.mod
View File

@ -1,90 +1,93 @@
module github.com/WHUPRJ/woj-server module git.0x7f.app/WOJ/woj-server
go 1.19 go 1.19
require ( require (
github.com/gin-contrib/cors v1.4.0 github.com/gin-contrib/cors v1.4.0
github.com/gin-contrib/pprof v1.4.0 github.com/gin-contrib/pprof v1.4.0
github.com/gin-contrib/zap v0.0.2 github.com/gin-contrib/zap v0.1.0
github.com/gin-gonic/gin v1.8.1 github.com/gin-gonic/gin v1.9.1
github.com/go-redis/redis/v8 v8.11.5 github.com/go-redis/redis/v8 v8.11.5
github.com/golang-jwt/jwt/v4 v4.4.2 github.com/golang-jwt/jwt/v4 v4.5.0
github.com/hibiken/asynq v0.23.0 github.com/hibiken/asynq v0.24.1
github.com/jackc/pgtype v1.11.0 github.com/jackc/pgtype v1.14.0
github.com/minio/minio-go/v7 v7.0.42 github.com/minio/minio-go/v7 v7.0.60
github.com/prometheus/client_golang v1.13.0 github.com/prometheus/client_golang v1.16.0
github.com/swaggo/files v0.0.0-20220728132757-551d4a08d97a github.com/swaggo/files v1.0.1
github.com/swaggo/gin-swagger v1.5.3 github.com/swaggo/gin-swagger v1.6.0
github.com/swaggo/swag v1.8.5 github.com/swaggo/swag v1.16.1
github.com/urfave/cli/v2 v2.14.1 github.com/urfave/cli/v2 v2.25.7
go.uber.org/zap v1.23.0 go.uber.org/zap v1.24.0
golang.org/x/crypto v0.0.0-20220722155217-630584e8d5aa golang.org/x/crypto v0.11.0
golang.org/x/text v0.3.7 golang.org/x/text v0.11.0
gopkg.in/yaml.v3 v3.0.1 gopkg.in/yaml.v3 v3.0.1
gorm.io/driver/postgres v1.3.9 gorm.io/driver/postgres v1.5.2
gorm.io/gorm v1.23.8 gorm.io/gorm v1.25.2
moul.io/zapgorm2 v1.1.3 moul.io/zapgorm2 v1.3.0
) )
require ( require (
github.com/KyleBanks/depth v1.2.1 // indirect github.com/KyleBanks/depth v1.2.1 // indirect
github.com/PuerkitoBio/purell v1.1.1 // indirect
github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578 // indirect
github.com/beorn7/perks v1.0.1 // indirect github.com/beorn7/perks v1.0.1 // indirect
github.com/cespare/xxhash/v2 v2.1.2 // indirect github.com/bytedance/sonic v1.9.2 // indirect
github.com/cespare/xxhash/v2 v2.2.0 // indirect
github.com/chenzhuoyu/base64x v0.0.0-20221115062448-fe3a3abad311 // indirect
github.com/cpuguy83/go-md2man/v2 v2.0.2 // indirect github.com/cpuguy83/go-md2man/v2 v2.0.2 // indirect
github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f // indirect github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f // indirect
github.com/dustin/go-humanize v1.0.0 // indirect github.com/dustin/go-humanize v1.0.1 // indirect
github.com/gabriel-vasile/mimetype v1.4.2 // indirect
github.com/gin-contrib/sse v0.1.0 // indirect github.com/gin-contrib/sse v0.1.0 // indirect
github.com/go-openapi/jsonpointer v0.19.5 // indirect github.com/go-openapi/jsonpointer v0.19.6 // indirect
github.com/go-openapi/jsonreference v0.19.6 // indirect github.com/go-openapi/jsonreference v0.20.2 // indirect
github.com/go-openapi/spec v0.20.4 // indirect github.com/go-openapi/spec v0.20.9 // indirect
github.com/go-openapi/swag v0.19.15 // indirect github.com/go-openapi/swag v0.22.4 // indirect
github.com/go-playground/locales v0.14.0 // indirect github.com/go-playground/locales v0.14.1 // indirect
github.com/go-playground/universal-translator v0.18.0 // indirect github.com/go-playground/universal-translator v0.18.1 // indirect
github.com/go-playground/validator/v10 v10.10.0 // indirect github.com/go-playground/validator/v10 v10.14.1 // indirect
github.com/goccy/go-json v0.9.7 // indirect github.com/goccy/go-json v0.10.2 // indirect
github.com/golang/protobuf v1.5.2 // indirect github.com/golang/protobuf v1.5.3 // indirect
github.com/google/uuid v1.3.0 // indirect github.com/google/uuid v1.3.0 // indirect
github.com/jackc/chunkreader/v2 v2.0.1 // indirect
github.com/jackc/pgconn v1.12.1 // indirect
github.com/jackc/pgio v1.0.0 // indirect github.com/jackc/pgio v1.0.0 // indirect
github.com/jackc/pgpassfile v1.0.0 // indirect github.com/jackc/pgpassfile v1.0.0 // indirect
github.com/jackc/pgproto3/v2 v2.3.0 // indirect github.com/jackc/pgservicefile v0.0.0-20221227161230-091c0ba34f0a // indirect
github.com/jackc/pgservicefile v0.0.0-20200714003250-2b9c44734f2b // indirect github.com/jackc/pgx/v4 v4.18.1 // indirect
github.com/jackc/pgx/v4 v4.16.1 // indirect github.com/jackc/pgx/v5 v5.4.2 // indirect
github.com/jinzhu/inflection v1.0.0 // indirect github.com/jinzhu/inflection v1.0.0 // indirect
github.com/jinzhu/now v1.1.4 // indirect github.com/jinzhu/now v1.1.5 // indirect
github.com/josharian/intern v1.0.0 // indirect github.com/josharian/intern v1.0.0 // indirect
github.com/json-iterator/go v1.1.12 // indirect github.com/json-iterator/go v1.1.12 // indirect
github.com/klauspost/compress v1.15.9 // indirect github.com/klauspost/compress v1.16.7 // indirect
github.com/klauspost/cpuid/v2 v2.1.0 // indirect github.com/klauspost/cpuid/v2 v2.2.5 // indirect
github.com/leodido/go-urn v1.2.1 // indirect github.com/leodido/go-urn v1.2.4 // indirect
github.com/mailru/easyjson v0.7.6 // indirect github.com/mailru/easyjson v0.7.7 // indirect
github.com/mattn/go-isatty v0.0.14 // indirect github.com/mattn/go-isatty v0.0.19 // indirect
github.com/matttproud/golang_protobuf_extensions v1.0.1 // indirect github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect
github.com/minio/md5-simd v1.1.2 // indirect github.com/minio/md5-simd v1.1.2 // indirect
github.com/minio/sha256-simd v1.0.0 // indirect github.com/minio/sha256-simd v1.0.1 // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.2 // indirect github.com/modern-go/reflect2 v1.0.2 // indirect
github.com/pelletier/go-toml/v2 v2.0.1 // indirect github.com/pelletier/go-toml/v2 v2.0.9 // indirect
github.com/prometheus/client_model v0.2.0 // indirect github.com/prometheus/client_model v0.4.0 // indirect
github.com/prometheus/common v0.37.0 // indirect github.com/prometheus/common v0.44.0 // indirect
github.com/prometheus/procfs v0.8.0 // indirect github.com/prometheus/procfs v0.11.0 // indirect
github.com/redis/go-redis/v9 v9.0.5 // indirect
github.com/robfig/cron/v3 v3.0.1 // indirect github.com/robfig/cron/v3 v3.0.1 // indirect
github.com/rs/xid v1.4.0 // indirect github.com/rs/xid v1.5.0 // indirect
github.com/russross/blackfriday/v2 v2.1.0 // indirect github.com/russross/blackfriday/v2 v2.1.0 // indirect
github.com/sirupsen/logrus v1.9.0 // indirect github.com/sirupsen/logrus v1.9.3 // indirect
github.com/spf13/cast v1.5.0 // indirect github.com/spf13/cast v1.5.1 // indirect
github.com/ugorji/go/codec v1.2.7 // indirect github.com/twitchyliquid64/golang-asm v0.15.1 // indirect
github.com/ugorji/go/codec v1.2.11 // indirect
github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect
go.uber.org/atomic v1.7.0 // indirect go.opentelemetry.io/otel v1.16.0 // indirect
go.uber.org/multierr v1.7.0 // indirect go.opentelemetry.io/otel/trace v1.16.0 // indirect
golang.org/x/net v0.0.0-20220722155237-a158d28d115b // indirect go.uber.org/atomic v1.11.0 // indirect
golang.org/x/sys v0.0.0-20220928140112-f11e5e49a4ec // indirect go.uber.org/multierr v1.11.0 // indirect
golang.org/x/time v0.0.0-20220922220347-f3bd1da661af // indirect golang.org/x/arch v0.4.0 // indirect
golang.org/x/tools v0.1.10 // indirect golang.org/x/net v0.12.0 // indirect
google.golang.org/protobuf v1.28.1 // indirect golang.org/x/sys v0.10.0 // indirect
gopkg.in/ini.v1 v1.66.6 // indirect golang.org/x/time v0.3.0 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect golang.org/x/tools v0.11.0 // indirect
google.golang.org/protobuf v1.31.0 // indirect
gopkg.in/ini.v1 v1.67.0 // indirect
) )

739
go.sum

File diff suppressed because it is too large Load Diff

View File

@ -2,10 +2,10 @@ package consumer
import ( import (
"context" "context"
"github.com/WHUPRJ/woj-server/internal/global" "git.0x7f.app/WOJ/woj-server/internal/global"
"github.com/WHUPRJ/woj-server/internal/service/problem" "git.0x7f.app/WOJ/woj-server/internal/service/problem"
"github.com/WHUPRJ/woj-server/internal/service/status" "git.0x7f.app/WOJ/woj-server/internal/service/status"
"github.com/WHUPRJ/woj-server/internal/service/task" "git.0x7f.app/WOJ/woj-server/internal/service/task"
"github.com/hibiken/asynq" "github.com/hibiken/asynq"
"go.uber.org/zap" "go.uber.org/zap"
) )

View File

@ -4,8 +4,8 @@ import (
"context" "context"
"encoding/json" "encoding/json"
"fmt" "fmt"
"github.com/WHUPRJ/woj-server/internal/e" "git.0x7f.app/WOJ/woj-server/internal/e"
"github.com/WHUPRJ/woj-server/internal/model" "git.0x7f.app/WOJ/woj-server/internal/model"
"github.com/hibiken/asynq" "github.com/hibiken/asynq"
"github.com/jackc/pgtype" "github.com/jackc/pgtype"
"go.uber.org/zap" "go.uber.org/zap"

View File

@ -4,9 +4,9 @@ import (
"context" "context"
"encoding/json" "encoding/json"
"fmt" "fmt"
"github.com/WHUPRJ/woj-server/internal/e" "git.0x7f.app/WOJ/woj-server/internal/e"
"github.com/WHUPRJ/woj-server/internal/model" "git.0x7f.app/WOJ/woj-server/internal/model"
"github.com/WHUPRJ/woj-server/internal/service/status" "git.0x7f.app/WOJ/woj-server/internal/service/status"
"github.com/hibiken/asynq" "github.com/hibiken/asynq"
"go.uber.org/zap" "go.uber.org/zap"
) )

View File

@ -1,7 +1,7 @@
package debug package debug
import ( import (
"github.com/WHUPRJ/woj-server/internal/global" "git.0x7f.app/WOJ/woj-server/internal/global"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
"go.uber.org/zap" "go.uber.org/zap"
) )

View File

@ -1,8 +1,8 @@
package debug package debug
import ( import (
"github.com/WHUPRJ/woj-server/internal/e" "git.0x7f.app/WOJ/woj-server/internal/e"
"github.com/WHUPRJ/woj-server/pkg/utils" "git.0x7f.app/WOJ/woj-server/pkg/utils"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
"go.uber.org/zap" "go.uber.org/zap"
) )

View File

@ -1,10 +1,10 @@
package problem package problem
import ( import (
"github.com/WHUPRJ/woj-server/internal/e" "git.0x7f.app/WOJ/woj-server/internal/e"
"github.com/WHUPRJ/woj-server/internal/global" "git.0x7f.app/WOJ/woj-server/internal/global"
"github.com/WHUPRJ/woj-server/internal/model" "git.0x7f.app/WOJ/woj-server/internal/model"
"github.com/WHUPRJ/woj-server/internal/service/problem" "git.0x7f.app/WOJ/woj-server/internal/service/problem"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
) )

View File

@ -1,9 +1,9 @@
package problem package problem
import ( import (
"github.com/WHUPRJ/woj-server/internal/e" "git.0x7f.app/WOJ/woj-server/internal/e"
"github.com/WHUPRJ/woj-server/internal/global" "git.0x7f.app/WOJ/woj-server/internal/global"
"github.com/WHUPRJ/woj-server/internal/model" "git.0x7f.app/WOJ/woj-server/internal/model"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
) )

View File

@ -1,10 +1,10 @@
package problem package problem
import ( import (
"github.com/WHUPRJ/woj-server/internal/global" "git.0x7f.app/WOJ/woj-server/internal/global"
"github.com/WHUPRJ/woj-server/internal/service/problem" "git.0x7f.app/WOJ/woj-server/internal/service/problem"
"github.com/WHUPRJ/woj-server/internal/service/storage" "git.0x7f.app/WOJ/woj-server/internal/service/storage"
"github.com/WHUPRJ/woj-server/internal/service/task" "git.0x7f.app/WOJ/woj-server/internal/service/task"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
"go.uber.org/zap" "go.uber.org/zap"
) )

View File

@ -1,7 +1,7 @@
package problem package problem
import ( import (
"github.com/WHUPRJ/woj-server/internal/e" "git.0x7f.app/WOJ/woj-server/internal/e"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
) )

View File

@ -1,10 +1,10 @@
package problem package problem
import ( import (
"github.com/WHUPRJ/woj-server/internal/e" "git.0x7f.app/WOJ/woj-server/internal/e"
"github.com/WHUPRJ/woj-server/internal/global" "git.0x7f.app/WOJ/woj-server/internal/global"
"github.com/WHUPRJ/woj-server/internal/model" "git.0x7f.app/WOJ/woj-server/internal/model"
"github.com/WHUPRJ/woj-server/internal/service/problem" "git.0x7f.app/WOJ/woj-server/internal/service/problem"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
) )

View File

@ -1,10 +1,10 @@
package problem package problem
import ( import (
"github.com/WHUPRJ/woj-server/internal/e" "git.0x7f.app/WOJ/woj-server/internal/e"
"github.com/WHUPRJ/woj-server/internal/global" "git.0x7f.app/WOJ/woj-server/internal/global"
"github.com/WHUPRJ/woj-server/internal/model" "git.0x7f.app/WOJ/woj-server/internal/model"
"github.com/WHUPRJ/woj-server/pkg/utils" "git.0x7f.app/WOJ/woj-server/pkg/utils"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
"time" "time"
) )

View File

@ -4,8 +4,8 @@ import (
"context" "context"
"encoding/json" "encoding/json"
"fmt" "fmt"
"github.com/WHUPRJ/woj-server/internal/e" "git.0x7f.app/WOJ/woj-server/internal/e"
"github.com/WHUPRJ/woj-server/internal/model" "git.0x7f.app/WOJ/woj-server/internal/model"
"github.com/hibiken/asynq" "github.com/hibiken/asynq"
"go.uber.org/zap" "go.uber.org/zap"
"time" "time"

View File

@ -3,11 +3,11 @@ package runner
import ( import (
"context" "context"
"errors" "errors"
"github.com/WHUPRJ/woj-server/internal/e" "git.0x7f.app/WOJ/woj-server/internal/e"
"github.com/WHUPRJ/woj-server/internal/global" "git.0x7f.app/WOJ/woj-server/internal/global"
"github.com/WHUPRJ/woj-server/internal/service/runner" "git.0x7f.app/WOJ/woj-server/internal/service/runner"
"github.com/WHUPRJ/woj-server/internal/service/storage" "git.0x7f.app/WOJ/woj-server/internal/service/storage"
"github.com/WHUPRJ/woj-server/internal/service/task" "git.0x7f.app/WOJ/woj-server/internal/service/task"
"github.com/hibiken/asynq" "github.com/hibiken/asynq"
"go.uber.org/zap" "go.uber.org/zap"
) )

View File

@ -4,10 +4,10 @@ import (
"context" "context"
"encoding/json" "encoding/json"
"fmt" "fmt"
"github.com/WHUPRJ/woj-server/internal/e" "git.0x7f.app/WOJ/woj-server/internal/e"
"github.com/WHUPRJ/woj-server/internal/model" "git.0x7f.app/WOJ/woj-server/internal/model"
"github.com/WHUPRJ/woj-server/internal/service/runner" "git.0x7f.app/WOJ/woj-server/internal/service/runner"
"github.com/WHUPRJ/woj-server/pkg/utils" "git.0x7f.app/WOJ/woj-server/pkg/utils"
"github.com/hibiken/asynq" "github.com/hibiken/asynq"
"go.uber.org/zap" "go.uber.org/zap"
"path/filepath" "path/filepath"

View File

@ -1,8 +1,8 @@
package status package status
import ( import (
"github.com/WHUPRJ/woj-server/internal/global" "git.0x7f.app/WOJ/woj-server/internal/global"
"github.com/WHUPRJ/woj-server/internal/service/status" "git.0x7f.app/WOJ/woj-server/internal/service/status"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
"go.uber.org/zap" "go.uber.org/zap"
) )

View File

@ -1,7 +1,7 @@
package status package status
import ( import (
"github.com/WHUPRJ/woj-server/internal/e" "git.0x7f.app/WOJ/woj-server/internal/e"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
) )

View File

@ -1,9 +1,9 @@
package status package status
import ( import (
"github.com/WHUPRJ/woj-server/internal/e" "git.0x7f.app/WOJ/woj-server/internal/e"
"github.com/WHUPRJ/woj-server/internal/global" "git.0x7f.app/WOJ/woj-server/internal/global"
"github.com/WHUPRJ/woj-server/internal/model" "git.0x7f.app/WOJ/woj-server/internal/model"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
) )

View File

@ -1,10 +1,10 @@
package submission package submission
import ( import (
"github.com/WHUPRJ/woj-server/internal/e" "git.0x7f.app/WOJ/woj-server/internal/e"
"github.com/WHUPRJ/woj-server/internal/global" "git.0x7f.app/WOJ/woj-server/internal/global"
"github.com/WHUPRJ/woj-server/internal/model" "git.0x7f.app/WOJ/woj-server/internal/model"
"github.com/WHUPRJ/woj-server/internal/service/submission" "git.0x7f.app/WOJ/woj-server/internal/service/submission"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
) )

View File

@ -1,11 +1,11 @@
package submission package submission
import ( import (
"github.com/WHUPRJ/woj-server/internal/global" "git.0x7f.app/WOJ/woj-server/internal/global"
"github.com/WHUPRJ/woj-server/internal/service/problem" "git.0x7f.app/WOJ/woj-server/internal/service/problem"
"github.com/WHUPRJ/woj-server/internal/service/status" "git.0x7f.app/WOJ/woj-server/internal/service/status"
"github.com/WHUPRJ/woj-server/internal/service/submission" "git.0x7f.app/WOJ/woj-server/internal/service/submission"
"github.com/WHUPRJ/woj-server/internal/service/task" "git.0x7f.app/WOJ/woj-server/internal/service/task"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
"go.uber.org/zap" "go.uber.org/zap"
) )

View File

@ -1,8 +1,8 @@
package submission package submission
import ( import (
"github.com/WHUPRJ/woj-server/internal/e" "git.0x7f.app/WOJ/woj-server/internal/e"
"github.com/WHUPRJ/woj-server/internal/model" "git.0x7f.app/WOJ/woj-server/internal/model"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
) )

View File

@ -1,9 +1,9 @@
package submission package submission
import ( import (
"github.com/WHUPRJ/woj-server/internal/e" "git.0x7f.app/WOJ/woj-server/internal/e"
"github.com/WHUPRJ/woj-server/internal/global" "git.0x7f.app/WOJ/woj-server/internal/global"
"github.com/WHUPRJ/woj-server/internal/model" "git.0x7f.app/WOJ/woj-server/internal/model"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
) )

View File

@ -1,9 +1,9 @@
package user package user
import ( import (
"github.com/WHUPRJ/woj-server/internal/e" "git.0x7f.app/WOJ/woj-server/internal/e"
"github.com/WHUPRJ/woj-server/internal/global" "git.0x7f.app/WOJ/woj-server/internal/global"
"github.com/WHUPRJ/woj-server/internal/service/user" "git.0x7f.app/WOJ/woj-server/internal/service/user"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
) )

View File

@ -1,8 +1,8 @@
package user package user
import ( import (
"github.com/WHUPRJ/woj-server/internal/global" "git.0x7f.app/WOJ/woj-server/internal/global"
"github.com/WHUPRJ/woj-server/internal/service/user" "git.0x7f.app/WOJ/woj-server/internal/service/user"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
"go.uber.org/zap" "go.uber.org/zap"
) )

View File

@ -1,9 +1,9 @@
package user package user
import ( import (
"github.com/WHUPRJ/woj-server/internal/e" "git.0x7f.app/WOJ/woj-server/internal/e"
"github.com/WHUPRJ/woj-server/internal/global" "git.0x7f.app/WOJ/woj-server/internal/global"
"github.com/WHUPRJ/woj-server/internal/service/user" "git.0x7f.app/WOJ/woj-server/internal/service/user"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
) )

View File

@ -1,8 +1,8 @@
package user package user
import ( import (
"github.com/WHUPRJ/woj-server/internal/e" "git.0x7f.app/WOJ/woj-server/internal/e"
"github.com/WHUPRJ/woj-server/internal/global" "git.0x7f.app/WOJ/woj-server/internal/global"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
) )

View File

@ -1,9 +1,9 @@
package user package user
import ( import (
"github.com/WHUPRJ/woj-server/internal/e" "git.0x7f.app/WOJ/woj-server/internal/e"
"github.com/WHUPRJ/woj-server/internal/global" "git.0x7f.app/WOJ/woj-server/internal/global"
"github.com/WHUPRJ/woj-server/internal/model" "git.0x7f.app/WOJ/woj-server/internal/model"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
) )

View File

@ -1,11 +1,11 @@
package runner package runner
import ( import (
"github.com/WHUPRJ/woj-server/internal/api/runner" "git.0x7f.app/WOJ/woj-server/internal/api/runner"
"github.com/WHUPRJ/woj-server/internal/global" "git.0x7f.app/WOJ/woj-server/internal/global"
"github.com/WHUPRJ/woj-server/internal/model" "git.0x7f.app/WOJ/woj-server/internal/model"
"github.com/WHUPRJ/woj-server/pkg/utils" "git.0x7f.app/WOJ/woj-server/pkg/utils"
"github.com/WHUPRJ/woj-server/pkg/zapasynq" "git.0x7f.app/WOJ/woj-server/pkg/zapasynq"
"github.com/hibiken/asynq" "github.com/hibiken/asynq"
"go.uber.org/zap" "go.uber.org/zap"
"runtime" "runtime"

View File

@ -3,15 +3,15 @@ package server
import ( import (
"context" "context"
"fmt" "fmt"
"github.com/WHUPRJ/woj-server/internal/api/consumer" "git.0x7f.app/WOJ/woj-server/internal/api/consumer"
"github.com/WHUPRJ/woj-server/internal/global" "git.0x7f.app/WOJ/woj-server/internal/global"
"github.com/WHUPRJ/woj-server/internal/model" "git.0x7f.app/WOJ/woj-server/internal/model"
"github.com/WHUPRJ/woj-server/internal/repo/postgresql" "git.0x7f.app/WOJ/woj-server/internal/repo/postgresql"
"github.com/WHUPRJ/woj-server/internal/repo/redis" "git.0x7f.app/WOJ/woj-server/internal/repo/redis"
"github.com/WHUPRJ/woj-server/internal/router" "git.0x7f.app/WOJ/woj-server/internal/router"
"github.com/WHUPRJ/woj-server/internal/service/jwt" "git.0x7f.app/WOJ/woj-server/internal/service/jwt"
"github.com/WHUPRJ/woj-server/pkg/utils" "git.0x7f.app/WOJ/woj-server/pkg/utils"
"github.com/WHUPRJ/woj-server/pkg/zapasynq" "git.0x7f.app/WOJ/woj-server/pkg/zapasynq"
"github.com/hibiken/asynq" "github.com/hibiken/asynq"
"go.uber.org/zap" "go.uber.org/zap"
"net/http" "net/http"

View File

@ -1,7 +1,7 @@
package e package e
import ( import (
"github.com/WHUPRJ/woj-server/pkg/utils" "git.0x7f.app/WOJ/woj-server/pkg/utils"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
"net/http" "net/http"
) )

View File

@ -1,7 +1,7 @@
package global package global
import ( import (
"github.com/WHUPRJ/woj-server/internal/pkg/metrics" "git.0x7f.app/WOJ/woj-server/internal/pkg/metrics"
"go.uber.org/zap" "go.uber.org/zap"
) )

View File

@ -1,8 +1,8 @@
package global package global
import ( import (
"github.com/WHUPRJ/woj-server/internal/e" "git.0x7f.app/WOJ/woj-server/internal/e"
"github.com/WHUPRJ/woj-server/internal/model" "git.0x7f.app/WOJ/woj-server/internal/model"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
"github.com/golang-jwt/jwt/v4" "github.com/golang-jwt/jwt/v4"
) )

View File

@ -1,7 +1,7 @@
package global package global
import ( import (
"github.com/WHUPRJ/woj-server/pkg/utils" "git.0x7f.app/WOJ/woj-server/pkg/utils"
"go.uber.org/zap" "go.uber.org/zap"
"go.uber.org/zap/zapcore" "go.uber.org/zap/zapcore"
"gopkg.in/yaml.v3" "gopkg.in/yaml.v3"

View File

@ -1,7 +1,7 @@
package model package model
import ( import (
"github.com/WHUPRJ/woj-server/internal/e" "git.0x7f.app/WOJ/woj-server/internal/e"
) )
const ( const (

View File

@ -2,7 +2,7 @@ package cast
import ( import (
"fmt" "fmt"
"github.com/WHUPRJ/woj-server/internal/e" "git.0x7f.app/WOJ/woj-server/internal/e"
"strconv" "strconv"
) )

View File

@ -1,8 +1,8 @@
package metrics package metrics
import ( import (
"github.com/WHUPRJ/woj-server/internal/e" "git.0x7f.app/WOJ/woj-server/internal/e"
"github.com/WHUPRJ/woj-server/pkg/utils" "git.0x7f.app/WOJ/woj-server/pkg/utils"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
"net/http" "net/http"
"strings" "strings"

View File

@ -1,8 +1,8 @@
package metrics package metrics
import ( import (
"github.com/WHUPRJ/woj-server/internal/e" "git.0x7f.app/WOJ/woj-server/internal/e"
"github.com/WHUPRJ/woj-server/internal/pkg/cast" "git.0x7f.app/WOJ/woj-server/internal/pkg/cast"
"github.com/prometheus/client_golang/prometheus" "github.com/prometheus/client_golang/prometheus"
) )

View File

@ -4,8 +4,8 @@ import (
"database/sql" "database/sql"
"errors" "errors"
"fmt" "fmt"
"github.com/WHUPRJ/woj-server/internal/global" "git.0x7f.app/WOJ/woj-server/internal/global"
"github.com/WHUPRJ/woj-server/internal/model" "git.0x7f.app/WOJ/woj-server/internal/model"
"go.uber.org/zap" "go.uber.org/zap"
"gorm.io/driver/postgres" "gorm.io/driver/postgres"
"gorm.io/gorm" "gorm.io/gorm"

View File

@ -2,7 +2,7 @@ package redis
import ( import (
"context" "context"
"github.com/WHUPRJ/woj-server/internal/global" "git.0x7f.app/WOJ/woj-server/internal/global"
"github.com/go-redis/redis/v8" "github.com/go-redis/redis/v8"
"go.uber.org/zap" "go.uber.org/zap"
) )

View File

@ -1,12 +1,12 @@
package router package router
import ( import (
"github.com/WHUPRJ/woj-server/internal/api/debug" "git.0x7f.app/WOJ/woj-server/internal/api/debug"
"github.com/WHUPRJ/woj-server/internal/api/problem" "git.0x7f.app/WOJ/woj-server/internal/api/problem"
"github.com/WHUPRJ/woj-server/internal/api/status" "git.0x7f.app/WOJ/woj-server/internal/api/status"
"github.com/WHUPRJ/woj-server/internal/api/submission" "git.0x7f.app/WOJ/woj-server/internal/api/submission"
"github.com/WHUPRJ/woj-server/internal/api/user" "git.0x7f.app/WOJ/woj-server/internal/api/user"
"github.com/WHUPRJ/woj-server/internal/global" "git.0x7f.app/WOJ/woj-server/internal/global"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
) )

View File

@ -1,10 +1,10 @@
package router package router
import ( import (
"github.com/WHUPRJ/woj-server/internal/global" "git.0x7f.app/WOJ/woj-server/internal/global"
"github.com/WHUPRJ/woj-server/internal/pkg/metrics" "git.0x7f.app/WOJ/woj-server/internal/pkg/metrics"
_ "github.com/WHUPRJ/woj-server/internal/router/docs" _ "git.0x7f.app/WOJ/woj-server/internal/router/docs"
"github.com/WHUPRJ/woj-server/pkg/utils" "git.0x7f.app/WOJ/woj-server/pkg/utils"
"github.com/gin-contrib/cors" "github.com/gin-contrib/cors"
"github.com/gin-contrib/pprof" "github.com/gin-contrib/pprof"
ginZap "github.com/gin-contrib/zap" ginZap "github.com/gin-contrib/zap"

View File

@ -1,8 +1,8 @@
package jwt package jwt
import ( import (
"github.com/WHUPRJ/woj-server/internal/e" "git.0x7f.app/WOJ/woj-server/internal/e"
"github.com/WHUPRJ/woj-server/internal/global" "git.0x7f.app/WOJ/woj-server/internal/global"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
"strings" "strings"
) )

View File

@ -1,7 +1,7 @@
package jwt package jwt
import ( import (
"github.com/WHUPRJ/woj-server/internal/global" "git.0x7f.app/WOJ/woj-server/internal/global"
"github.com/go-redis/redis/v8" "github.com/go-redis/redis/v8"
"go.uber.org/zap" "go.uber.org/zap"
) )

View File

@ -3,9 +3,9 @@ package jwt
import ( import (
"context" "context"
"fmt" "fmt"
"github.com/WHUPRJ/woj-server/internal/e" "git.0x7f.app/WOJ/woj-server/internal/e"
"github.com/WHUPRJ/woj-server/internal/global" "git.0x7f.app/WOJ/woj-server/internal/global"
"github.com/WHUPRJ/woj-server/pkg/utils" "git.0x7f.app/WOJ/woj-server/pkg/utils"
"github.com/golang-jwt/jwt/v4" "github.com/golang-jwt/jwt/v4"
"go.uber.org/zap" "go.uber.org/zap"
"time" "time"

View File

@ -1,8 +1,8 @@
package problem package problem
import ( import (
"github.com/WHUPRJ/woj-server/internal/e" "git.0x7f.app/WOJ/woj-server/internal/e"
"github.com/WHUPRJ/woj-server/internal/model" "git.0x7f.app/WOJ/woj-server/internal/model"
"go.uber.org/zap" "go.uber.org/zap"
) )

View File

@ -1,8 +1,8 @@
package problem package problem
import ( import (
"github.com/WHUPRJ/woj-server/internal/e" "git.0x7f.app/WOJ/woj-server/internal/e"
"github.com/WHUPRJ/woj-server/internal/model" "git.0x7f.app/WOJ/woj-server/internal/model"
"github.com/jackc/pgtype" "github.com/jackc/pgtype"
"go.uber.org/zap" "go.uber.org/zap"
) )

View File

@ -2,8 +2,8 @@ package problem
import ( import (
"errors" "errors"
"github.com/WHUPRJ/woj-server/internal/e" "git.0x7f.app/WOJ/woj-server/internal/e"
"github.com/WHUPRJ/woj-server/internal/model" "git.0x7f.app/WOJ/woj-server/internal/model"
"go.uber.org/zap" "go.uber.org/zap"
"gorm.io/gorm" "gorm.io/gorm"
"gorm.io/gorm/clause" "gorm.io/gorm/clause"

View File

@ -1,8 +1,8 @@
package problem package problem
import ( import (
"github.com/WHUPRJ/woj-server/internal/e" "git.0x7f.app/WOJ/woj-server/internal/e"
"github.com/WHUPRJ/woj-server/internal/model" "git.0x7f.app/WOJ/woj-server/internal/model"
"go.uber.org/zap" "go.uber.org/zap"
"gorm.io/gorm/clause" "gorm.io/gorm/clause"
) )

View File

@ -2,8 +2,8 @@ package problem
import ( import (
"errors" "errors"
"github.com/WHUPRJ/woj-server/internal/e" "git.0x7f.app/WOJ/woj-server/internal/e"
"github.com/WHUPRJ/woj-server/internal/model" "git.0x7f.app/WOJ/woj-server/internal/model"
"go.uber.org/zap" "go.uber.org/zap"
"gorm.io/gorm" "gorm.io/gorm"
) )

View File

@ -2,8 +2,8 @@ package problem
import ( import (
"errors" "errors"
"github.com/WHUPRJ/woj-server/internal/e" "git.0x7f.app/WOJ/woj-server/internal/e"
"github.com/WHUPRJ/woj-server/internal/model" "git.0x7f.app/WOJ/woj-server/internal/model"
"go.uber.org/zap" "go.uber.org/zap"
"gorm.io/gorm" "gorm.io/gorm"
) )

View File

@ -1,9 +1,9 @@
package problem package problem
import ( import (
"github.com/WHUPRJ/woj-server/internal/e" "git.0x7f.app/WOJ/woj-server/internal/e"
"github.com/WHUPRJ/woj-server/internal/global" "git.0x7f.app/WOJ/woj-server/internal/global"
"github.com/WHUPRJ/woj-server/internal/model" "git.0x7f.app/WOJ/woj-server/internal/model"
"go.uber.org/zap" "go.uber.org/zap"
"gorm.io/gorm" "gorm.io/gorm"
) )

View File

@ -1,8 +1,8 @@
package problem package problem
import ( import (
"github.com/WHUPRJ/woj-server/internal/e" "git.0x7f.app/WOJ/woj-server/internal/e"
"github.com/WHUPRJ/woj-server/internal/model" "git.0x7f.app/WOJ/woj-server/internal/model"
"go.uber.org/zap" "go.uber.org/zap"
) )

View File

@ -1,8 +1,8 @@
package problem package problem
import ( import (
"github.com/WHUPRJ/woj-server/internal/e" "git.0x7f.app/WOJ/woj-server/internal/e"
"github.com/WHUPRJ/woj-server/internal/model" "git.0x7f.app/WOJ/woj-server/internal/model"
"go.uber.org/zap" "go.uber.org/zap"
) )

View File

@ -2,8 +2,8 @@ package runner
import ( import (
"fmt" "fmt"
"github.com/WHUPRJ/woj-server/internal/e" "git.0x7f.app/WOJ/woj-server/internal/e"
"github.com/WHUPRJ/woj-server/pkg/utils" "git.0x7f.app/WOJ/woj-server/pkg/utils"
"go.uber.org/zap" "go.uber.org/zap"
"os" "os"
"os/exec" "os/exec"

View File

@ -2,8 +2,8 @@ package runner
import ( import (
"fmt" "fmt"
"github.com/WHUPRJ/woj-server/internal/e" "git.0x7f.app/WOJ/woj-server/internal/e"
"github.com/WHUPRJ/woj-server/pkg/utils" "git.0x7f.app/WOJ/woj-server/pkg/utils"
"os" "os"
"path/filepath" "path/filepath"
) )

View File

@ -1,8 +1,8 @@
package runner package runner
import ( import (
"github.com/WHUPRJ/woj-server/internal/e" "git.0x7f.app/WOJ/woj-server/internal/e"
"github.com/WHUPRJ/woj-server/pkg/utils" "git.0x7f.app/WOJ/woj-server/pkg/utils"
"go.uber.org/zap" "go.uber.org/zap"
"os" "os"
"os/exec" "os/exec"

View File

@ -2,10 +2,10 @@ package runner
import ( import (
"fmt" "fmt"
"github.com/WHUPRJ/woj-server/internal/e" "git.0x7f.app/WOJ/woj-server/internal/e"
"github.com/WHUPRJ/woj-server/pkg/down" "git.0x7f.app/WOJ/woj-server/pkg/down"
"github.com/WHUPRJ/woj-server/pkg/unzip" "git.0x7f.app/WOJ/woj-server/pkg/unzip"
"github.com/WHUPRJ/woj-server/pkg/utils" "git.0x7f.app/WOJ/woj-server/pkg/utils"
"go.uber.org/zap" "go.uber.org/zap"
"os" "os"
"path/filepath" "path/filepath"

View File

@ -1,6 +1,6 @@
package runner package runner
import "github.com/WHUPRJ/woj-server/internal/e" import "git.0x7f.app/WOJ/woj-server/internal/e"
func (s *service) RunAndJudge(version uint, user string, lang string, config *Config) (JudgeStatus, int32, e.Status) { func (s *service) RunAndJudge(version uint, user string, lang string, config *Config) (JudgeStatus, int32, e.Status) {
// run user program // run user program

View File

@ -1,8 +1,8 @@
package runner package runner
import ( import (
"github.com/WHUPRJ/woj-server/internal/e" "git.0x7f.app/WOJ/woj-server/internal/e"
"github.com/WHUPRJ/woj-server/internal/global" "git.0x7f.app/WOJ/woj-server/internal/global"
"go.uber.org/zap" "go.uber.org/zap"
) )

View File

@ -5,7 +5,7 @@ import (
"encoding/json" "encoding/json"
"encoding/xml" "encoding/xml"
"fmt" "fmt"
"github.com/WHUPRJ/woj-server/pkg/utils" "git.0x7f.app/WOJ/woj-server/pkg/utils"
"golang.org/x/text/encoding/charmap" "golang.org/x/text/encoding/charmap"
"io" "io"
"path/filepath" "path/filepath"

View File

@ -1,8 +1,8 @@
package status package status
import ( import (
"github.com/WHUPRJ/woj-server/internal/e" "git.0x7f.app/WOJ/woj-server/internal/e"
"github.com/WHUPRJ/woj-server/internal/model" "git.0x7f.app/WOJ/woj-server/internal/model"
"github.com/jackc/pgtype" "github.com/jackc/pgtype"
"go.uber.org/zap" "go.uber.org/zap"
) )

View File

@ -2,8 +2,8 @@ package status
import ( import (
"errors" "errors"
"github.com/WHUPRJ/woj-server/internal/e" "git.0x7f.app/WOJ/woj-server/internal/e"
"github.com/WHUPRJ/woj-server/internal/model" "git.0x7f.app/WOJ/woj-server/internal/model"
"go.uber.org/zap" "go.uber.org/zap"
"gorm.io/gorm" "gorm.io/gorm"
"gorm.io/gorm/clause" "gorm.io/gorm/clause"

View File

@ -1,9 +1,9 @@
package status package status
import ( import (
"github.com/WHUPRJ/woj-server/internal/e" "git.0x7f.app/WOJ/woj-server/internal/e"
"github.com/WHUPRJ/woj-server/internal/global" "git.0x7f.app/WOJ/woj-server/internal/global"
"github.com/WHUPRJ/woj-server/internal/model" "git.0x7f.app/WOJ/woj-server/internal/model"
"go.uber.org/zap" "go.uber.org/zap"
"gorm.io/gorm" "gorm.io/gorm"
) )

View File

@ -2,7 +2,7 @@ package storage
import ( import (
"context" "context"
"github.com/WHUPRJ/woj-server/internal/e" "git.0x7f.app/WOJ/woj-server/internal/e"
"go.uber.org/zap" "go.uber.org/zap"
"net/url" "net/url"
"time" "time"

View File

@ -1,8 +1,8 @@
package storage package storage
import ( import (
"github.com/WHUPRJ/woj-server/internal/e" "git.0x7f.app/WOJ/woj-server/internal/e"
"github.com/WHUPRJ/woj-server/internal/global" "git.0x7f.app/WOJ/woj-server/internal/global"
"github.com/minio/minio-go/v7" "github.com/minio/minio-go/v7"
"github.com/minio/minio-go/v7/pkg/credentials" "github.com/minio/minio-go/v7/pkg/credentials"
"go.uber.org/zap" "go.uber.org/zap"

View File

@ -2,7 +2,7 @@ package storage
import ( import (
"context" "context"
"github.com/WHUPRJ/woj-server/internal/e" "git.0x7f.app/WOJ/woj-server/internal/e"
"go.uber.org/zap" "go.uber.org/zap"
"time" "time"
) )

View File

@ -1,8 +1,8 @@
package submission package submission
import ( import (
"github.com/WHUPRJ/woj-server/internal/e" "git.0x7f.app/WOJ/woj-server/internal/e"
"github.com/WHUPRJ/woj-server/internal/model" "git.0x7f.app/WOJ/woj-server/internal/model"
"go.uber.org/zap" "go.uber.org/zap"
) )

View File

@ -2,8 +2,8 @@ package submission
import ( import (
"errors" "errors"
"github.com/WHUPRJ/woj-server/internal/e" "git.0x7f.app/WOJ/woj-server/internal/e"
"github.com/WHUPRJ/woj-server/internal/model" "git.0x7f.app/WOJ/woj-server/internal/model"
"go.uber.org/zap" "go.uber.org/zap"
"gorm.io/gorm" "gorm.io/gorm"
"gorm.io/gorm/clause" "gorm.io/gorm/clause"

View File

@ -1,9 +1,9 @@
package submission package submission
import ( import (
"github.com/WHUPRJ/woj-server/internal/e" "git.0x7f.app/WOJ/woj-server/internal/e"
"github.com/WHUPRJ/woj-server/internal/global" "git.0x7f.app/WOJ/woj-server/internal/global"
"github.com/WHUPRJ/woj-server/internal/model" "git.0x7f.app/WOJ/woj-server/internal/model"
"go.uber.org/zap" "go.uber.org/zap"
"gorm.io/gorm" "gorm.io/gorm"
) )

View File

@ -1,7 +1,7 @@
package task package task
import ( import (
"github.com/WHUPRJ/woj-server/internal/e" "git.0x7f.app/WOJ/woj-server/internal/e"
"github.com/hibiken/asynq" "github.com/hibiken/asynq"
"go.uber.org/zap" "go.uber.org/zap"
) )

View File

@ -2,8 +2,8 @@ package task
import ( import (
"encoding/json" "encoding/json"
"github.com/WHUPRJ/woj-server/internal/e" "git.0x7f.app/WOJ/woj-server/internal/e"
"github.com/WHUPRJ/woj-server/internal/model" "git.0x7f.app/WOJ/woj-server/internal/model"
"go.uber.org/zap" "go.uber.org/zap"
) )

View File

@ -1,10 +1,10 @@
package task package task
import ( import (
"github.com/WHUPRJ/woj-server/internal/e" "git.0x7f.app/WOJ/woj-server/internal/e"
"github.com/WHUPRJ/woj-server/internal/global" "git.0x7f.app/WOJ/woj-server/internal/global"
"github.com/WHUPRJ/woj-server/internal/model" "git.0x7f.app/WOJ/woj-server/internal/model"
"github.com/WHUPRJ/woj-server/internal/service/runner" "git.0x7f.app/WOJ/woj-server/internal/service/runner"
"github.com/hibiken/asynq" "github.com/hibiken/asynq"
"go.uber.org/zap" "go.uber.org/zap"
) )

View File

@ -2,9 +2,9 @@ package task
import ( import (
"encoding/json" "encoding/json"
"github.com/WHUPRJ/woj-server/internal/e" "git.0x7f.app/WOJ/woj-server/internal/e"
"github.com/WHUPRJ/woj-server/internal/model" "git.0x7f.app/WOJ/woj-server/internal/model"
"github.com/WHUPRJ/woj-server/internal/service/runner" "git.0x7f.app/WOJ/woj-server/internal/service/runner"
"go.uber.org/zap" "go.uber.org/zap"
) )

View File

@ -1,8 +1,8 @@
package user package user
import ( import (
"github.com/WHUPRJ/woj-server/internal/e" "git.0x7f.app/WOJ/woj-server/internal/e"
"github.com/WHUPRJ/woj-server/internal/model" "git.0x7f.app/WOJ/woj-server/internal/model"
"go.uber.org/zap" "go.uber.org/zap"
"golang.org/x/crypto/bcrypt" "golang.org/x/crypto/bcrypt"
"strings" "strings"

View File

@ -2,8 +2,8 @@ package user
import ( import (
"errors" "errors"
"github.com/WHUPRJ/woj-server/internal/e" "git.0x7f.app/WOJ/woj-server/internal/e"
"github.com/WHUPRJ/woj-server/internal/model" "git.0x7f.app/WOJ/woj-server/internal/model"
"go.uber.org/zap" "go.uber.org/zap"
"golang.org/x/crypto/bcrypt" "golang.org/x/crypto/bcrypt"
"gorm.io/gorm" "gorm.io/gorm"

View File

@ -2,8 +2,8 @@ package user
import ( import (
"errors" "errors"
"github.com/WHUPRJ/woj-server/internal/e" "git.0x7f.app/WOJ/woj-server/internal/e"
"github.com/WHUPRJ/woj-server/internal/model" "git.0x7f.app/WOJ/woj-server/internal/model"
"go.uber.org/zap" "go.uber.org/zap"
"gorm.io/gorm" "gorm.io/gorm"
) )

View File

@ -1,9 +1,9 @@
package user package user
import ( import (
"github.com/WHUPRJ/woj-server/internal/e" "git.0x7f.app/WOJ/woj-server/internal/e"
"github.com/WHUPRJ/woj-server/internal/global" "git.0x7f.app/WOJ/woj-server/internal/global"
"github.com/WHUPRJ/woj-server/internal/model" "git.0x7f.app/WOJ/woj-server/internal/model"
"github.com/go-redis/redis/v8" "github.com/go-redis/redis/v8"
"go.uber.org/zap" "go.uber.org/zap"
"gorm.io/gorm" "gorm.io/gorm"

View File

@ -3,7 +3,7 @@ package user
import ( import (
"context" "context"
"fmt" "fmt"
"github.com/WHUPRJ/woj-server/internal/e" "git.0x7f.app/WOJ/woj-server/internal/e"
"go.uber.org/zap" "go.uber.org/zap"
) )

View File

@ -2,7 +2,7 @@ package down
import ( import (
"fmt" "fmt"
"github.com/WHUPRJ/woj-server/pkg/utils" "git.0x7f.app/WOJ/woj-server/pkg/utils"
"io" "io"
"net/http" "net/http"
"os" "os"

View File

@ -2,7 +2,7 @@
set -x set -x
rm -rf woj-sandbox rm -rf woj-sandbox
git clone https://github.com/WHUPRJ/woj-sandbox.git >/dev/null 2>&1 || exit 1 git clone https://git.0x7f.app/WOJ/woj-sandbox.git >/dev/null 2>&1 || exit 1
cd woj-sandbox && ./build_libseccomp.sh || exit 1 cd woj-sandbox && ./build_libseccomp.sh || exit 1
mkdir -p build && cd build || exit 1 mkdir -p build && cd build || exit 1