Skip to content

Commit

Permalink
Merge main change
Browse files Browse the repository at this point in the history
  • Loading branch information
ycvk committed May 8, 2024
2 parents 61b07e8 + fe04856 commit 3119e75
Show file tree
Hide file tree
Showing 9 changed files with 532 additions and 414 deletions.
18 changes: 16 additions & 2 deletions domain/entity.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,10 @@ type TranslateResponse struct {
type YingTuResponse struct {
Code int `json:"code"`
Data struct {
Total int `json:"total"`
Arr []YingTuResponseArr `json:"arr"`
Total int `json:"total"`
Arr []YingTuResponseArr `json:"arr"`
ConsumeQuota string `json:"consume_quota"`
RestQuota string `json:"rest_quota"`
}
}

Expand All @@ -45,3 +47,15 @@ type Quake360ResponseData struct {
Domain string `json:"domain"`
Id string `json:"id"` // hpjx.e.eceping.net_443_tcp 或者 116.204.90.243_2001_tcp
}

type Quake360UserInfoResponse struct {
Code int `json:"code"`
Message string `json:"message"`
Data Quake360UserInfoResponseData `json:"data"`
}

type Quake360UserInfoResponseData struct {
MonthRemainingCredit int `json:"month_remaining_credit"`
FreeQueryApiCount int `json:"free_query_api_count"`
MobilePhone string `json:"mobile_phone"`
}
40 changes: 23 additions & 17 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@ go 1.22

require (
github.com/getlantern/systray v1.2.2
github.com/gin-gonic/gin v1.9.1
github.com/imroc/req/v3 v3.43.3
github.com/gin-gonic/gin v1.10.0
github.com/imroc/req/v3 v3.43.4
github.com/samber/lo v1.39.0
github.com/sourcegraph/conc v0.3.0
github.com/ycvk/endless v0.0.0-20240425132555-71b31d16be07
github.com/ycvk/priority-queue v0.1.2
)

require (
Expand All @@ -20,20 +19,22 @@ require (
github.com/cloudwego/base64x v0.1.4 // indirect
github.com/cloudwego/iasm v0.2.0 // indirect
github.com/gabriel-vasile/mimetype v1.4.3 // indirect
github.com/getlantern/context v0.0.0-20190109183933-c447772a6520 // indirect
github.com/getlantern/errors v0.0.0-20190325191628-abdb3e3e36f7 // indirect
github.com/getlantern/golog v0.0.0-20190830074920-4ef2e798c2d7 // indirect
github.com/getlantern/hex v0.0.0-20190417191902-c6586a6fe0b7 // indirect
github.com/getlantern/hidden v0.0.0-20190325191715-f02dbb02be55 // indirect
github.com/getlantern/ops v0.0.0-20190325191751-d70cb0d6f85f // indirect
github.com/getlantern/context v0.0.0-20220418194847-3d5e7a086201 // indirect
github.com/getlantern/errors v1.0.4 // indirect
github.com/getlantern/golog v0.0.0-20230503153817-8e72de7e0a65 // indirect
github.com/getlantern/hex v0.0.0-20220104173244-ad7e4b9194dc // indirect
github.com/getlantern/hidden v0.0.0-20220104173330-f221c5a24770 // indirect
github.com/getlantern/ops v0.0.0-20231025133620-f368ab734534 // indirect
github.com/gin-contrib/sse v0.1.0 // indirect
github.com/go-logr/logr v1.4.1 // indirect
github.com/go-logr/stdr v1.2.2 // indirect
github.com/go-playground/locales v0.14.1 // indirect
github.com/go-playground/universal-translator v0.18.1 // indirect
github.com/go-playground/validator/v10 v10.20.0 // indirect
github.com/go-stack/stack v1.8.0 // indirect
github.com/go-stack/stack v1.8.1 // indirect
github.com/go-task/slim-sprig/v3 v3.0.0 // indirect
github.com/goccy/go-json v0.10.2 // indirect
github.com/google/pprof v0.0.0-20240430035430-e4905b036c4e // indirect
github.com/google/pprof v0.0.0-20240507183855-6f11f98ebb1c // indirect
github.com/hashicorp/errwrap v1.1.0 // indirect
github.com/hashicorp/go-multierror v1.1.1 // indirect
github.com/json-iterator/go v1.1.12 // indirect
Expand All @@ -44,24 +45,29 @@ require (
github.com/mattn/go-isatty v0.0.20 // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.2 // indirect
github.com/onsi/ginkgo/v2 v2.17.2 // indirect
github.com/onsi/ginkgo/v2 v2.17.3 // indirect
github.com/oxtoacart/bpool v0.0.0-20190530202638-03653db5a59c // indirect
github.com/pelletier/go-toml/v2 v2.2.2 // indirect
github.com/quic-go/qpack v0.4.0 // indirect
github.com/quic-go/quic-go v0.43.1 // indirect
github.com/refraction-networking/utls v1.6.6 // indirect
github.com/twitchyliquid64/golang-asm v0.15.1 // indirect
github.com/ugorji/go/codec v1.2.12 // indirect
go.opentelemetry.io/otel v1.26.0 // indirect
go.opentelemetry.io/otel/metric v1.26.0 // indirect
go.opentelemetry.io/otel/trace v1.26.0 // indirect
go.uber.org/atomic v1.11.0 // indirect
go.uber.org/mock v0.4.0 // indirect
go.uber.org/multierr v1.11.0 // indirect
go.uber.org/zap v1.27.0 // indirect
golang.org/x/arch v0.8.0 // indirect
golang.org/x/crypto v0.22.0 // indirect
golang.org/x/exp v0.0.0-20240416160154-fe59bbe5cc7f // indirect
golang.org/x/crypto v0.23.0 // indirect
golang.org/x/exp v0.0.0-20240506185415-9bf2ced13842 // indirect
golang.org/x/mod v0.17.0 // indirect
golang.org/x/net v0.24.0 // indirect
golang.org/x/net v0.25.0 // indirect
golang.org/x/sys v0.20.0 // indirect
golang.org/x/text v0.15.0 // indirect
golang.org/x/tools v0.20.0 // indirect
google.golang.org/protobuf v1.34.0 // indirect
golang.org/x/tools v0.21.0 // indirect
google.golang.org/protobuf v1.34.1 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
Loading

0 comments on commit 3119e75

Please sign in to comment.