update go module to gitea.youtukeji.com.cn/xiabin/youtu_server

This commit is contained in:
xiabin 2025-01-21 10:38:27 +08:00
parent 1fba083683
commit 7a1c79486c
18 changed files with 47 additions and 47 deletions

View File

@ -3,9 +3,9 @@ package main
import ( import (
"flag" "flag"
"fmt" "fmt"
"youtu_server/game_open_api/internal/config" "gitea.youtukeji.com.cn/xiabin/youtu_server/game_open_api/internal/config"
"youtu_server/game_open_api/internal/handler" "gitea.youtukeji.com.cn/xiabin/youtu_server/game_open_api/internal/handler"
"youtu_server/game_open_api/internal/svc" "gitea.youtukeji.com.cn/xiabin/youtu_server/game_open_api/internal/svc"
"github.com/zeromicro/go-zero/core/conf" "github.com/zeromicro/go-zero/core/conf"
"github.com/zeromicro/go-zero/rest" "github.com/zeromicro/go-zero/rest"

View File

@ -5,8 +5,8 @@ import (
"gitea.youtukeji.com.cn/xiabin/douyin-openapi/cache" "gitea.youtukeji.com.cn/xiabin/douyin-openapi/cache"
"gitea.youtukeji.com.cn/xiabin/youtu_ecpm/pkg/douyinapi" "gitea.youtukeji.com.cn/xiabin/youtu_ecpm/pkg/douyinapi"
"gitea.youtukeji.com.cn/xiabin/youtu_ecpm/pkg/wechat_api" "gitea.youtukeji.com.cn/xiabin/youtu_ecpm/pkg/wechat_api"
"gitea.youtukeji.com.cn/xiabin/youtu_server/game_open_api/model"
"sync" "sync"
"youtu_server/game_open_api/model"
) )
var once sync.Once var once sync.Once

View File

@ -3,10 +3,10 @@ package app_user
import ( import (
"net/http" "net/http"
"gitea.youtukeji.com.cn/xiabin/youtu_server/game_open_api/internal/logic/app_user"
"gitea.youtukeji.com.cn/xiabin/youtu_server/game_open_api/internal/svc"
"gitea.youtukeji.com.cn/xiabin/youtu_server/game_open_api/internal/types"
"github.com/zeromicro/go-zero/rest/httpx" "github.com/zeromicro/go-zero/rest/httpx"
"youtu_server/game_open_api/internal/logic/app_user"
"youtu_server/game_open_api/internal/svc"
"youtu_server/game_open_api/internal/types"
) )
func AppUserSetUserHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { func AppUserSetUserHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {

View File

@ -3,10 +3,10 @@ package douyin
import ( import (
"net/http" "net/http"
"gitea.youtukeji.com.cn/xiabin/youtu_server/game_open_api/internal/logic/douyin"
"gitea.youtukeji.com.cn/xiabin/youtu_server/game_open_api/internal/svc"
"gitea.youtukeji.com.cn/xiabin/youtu_server/game_open_api/internal/types"
"github.com/zeromicro/go-zero/rest/httpx" "github.com/zeromicro/go-zero/rest/httpx"
"youtu_server/game_open_api/internal/logic/douyin"
"youtu_server/game_open_api/internal/svc"
"youtu_server/game_open_api/internal/types"
) )
func DouyinCode2tokenHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { func DouyinCode2tokenHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {

View File

@ -3,9 +3,9 @@ package douyin
import ( import (
"net/http" "net/http"
"gitea.youtukeji.com.cn/xiabin/youtu_server/game_open_api/internal/logic/douyin"
"gitea.youtukeji.com.cn/xiabin/youtu_server/game_open_api/internal/svc"
"github.com/zeromicro/go-zero/rest/httpx" "github.com/zeromicro/go-zero/rest/httpx"
"youtu_server/game_open_api/internal/logic/douyin"
"youtu_server/game_open_api/internal/svc"
) )
func GetEcpmHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { func GetEcpmHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {

View File

@ -3,9 +3,9 @@ package game
import ( import (
"net/http" "net/http"
"gitea.youtukeji.com.cn/xiabin/youtu_server/game_open_api/internal/logic/game"
"gitea.youtukeji.com.cn/xiabin/youtu_server/game_open_api/internal/svc"
"github.com/zeromicro/go-zero/rest/httpx" "github.com/zeromicro/go-zero/rest/httpx"
"youtu_server/game_open_api/internal/logic/game"
"youtu_server/game_open_api/internal/svc"
) )
func RankingListHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { func RankingListHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {

View File

@ -3,10 +3,10 @@ package game
import ( import (
"net/http" "net/http"
"gitea.youtukeji.com.cn/xiabin/youtu_server/game_open_api/internal/logic/game"
"gitea.youtukeji.com.cn/xiabin/youtu_server/game_open_api/internal/svc"
"gitea.youtukeji.com.cn/xiabin/youtu_server/game_open_api/internal/types"
"github.com/zeromicro/go-zero/rest/httpx" "github.com/zeromicro/go-zero/rest/httpx"
"youtu_server/game_open_api/internal/logic/game"
"youtu_server/game_open_api/internal/svc"
"youtu_server/game_open_api/internal/types"
) )
func RankingSetScoreHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { func RankingSetScoreHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {

View File

@ -7,11 +7,11 @@ import (
"net/http" "net/http"
"time" "time"
app_user "youtu_server/game_open_api/internal/handler/app_user" app_user "gitea.youtukeji.com.cn/xiabin/youtu_server/game_open_api/internal/handler/app_user"
douyin "youtu_server/game_open_api/internal/handler/douyin" douyin "gitea.youtukeji.com.cn/xiabin/youtu_server/game_open_api/internal/handler/douyin"
game "youtu_server/game_open_api/internal/handler/game" game "gitea.youtukeji.com.cn/xiabin/youtu_server/game_open_api/internal/handler/game"
wechat "youtu_server/game_open_api/internal/handler/wechat" wechat "gitea.youtukeji.com.cn/xiabin/youtu_server/game_open_api/internal/handler/wechat"
"youtu_server/game_open_api/internal/svc" "gitea.youtukeji.com.cn/xiabin/youtu_server/game_open_api/internal/svc"
"github.com/zeromicro/go-zero/rest" "github.com/zeromicro/go-zero/rest"
) )

View File

@ -3,10 +3,10 @@ package wechat
import ( import (
"net/http" "net/http"
"gitea.youtukeji.com.cn/xiabin/youtu_server/game_open_api/internal/logic/wechat"
"gitea.youtukeji.com.cn/xiabin/youtu_server/game_open_api/internal/svc"
"gitea.youtukeji.com.cn/xiabin/youtu_server/game_open_api/internal/types"
"github.com/zeromicro/go-zero/rest/httpx" "github.com/zeromicro/go-zero/rest/httpx"
"youtu_server/game_open_api/internal/logic/wechat"
"youtu_server/game_open_api/internal/svc"
"youtu_server/game_open_api/internal/types"
) )
func WechatCode2UserIdHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { func WechatCode2UserIdHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {

View File

@ -2,10 +2,10 @@ package app_user
import ( import (
"context" "context"
"youtu_server/game_open_api/model" "gitea.youtukeji.com.cn/xiabin/youtu_server/game_open_api/model"
"youtu_server/game_open_api/internal/svc" "gitea.youtukeji.com.cn/xiabin/youtu_server/game_open_api/internal/svc"
"youtu_server/game_open_api/internal/types" "gitea.youtukeji.com.cn/xiabin/youtu_server/game_open_api/internal/types"
"github.com/zeromicro/go-zero/core/logx" "github.com/zeromicro/go-zero/core/logx"
) )

View File

@ -2,13 +2,13 @@ package douyin
import ( import (
"context" "context"
"gitea.youtukeji.com.cn/xiabin/youtu_server/game_open_api/internal/app_api_helper"
"gitea.youtukeji.com.cn/xiabin/youtu_server/game_open_api/model"
"github.com/golang-jwt/jwt/v4" "github.com/golang-jwt/jwt/v4"
"time" "time"
"youtu_server/game_open_api/internal/app_api_helper"
"youtu_server/game_open_api/model"
"youtu_server/game_open_api/internal/svc" "gitea.youtukeji.com.cn/xiabin/youtu_server/game_open_api/internal/svc"
"youtu_server/game_open_api/internal/types" "gitea.youtukeji.com.cn/xiabin/youtu_server/game_open_api/internal/types"
"github.com/zeromicro/go-zero/core/logx" "github.com/zeromicro/go-zero/core/logx"
) )

View File

@ -2,11 +2,11 @@ package douyin
import ( import (
"context" "context"
"gitea.youtukeji.com.cn/xiabin/youtu_server/game_open_api/internal/app_api_helper"
"time" "time"
"youtu_server/game_open_api/internal/app_api_helper"
"gitea.youtukeji.com.cn/xiabin/youtu_server/game_open_api/internal/svc"
"github.com/zeromicro/go-zero/core/logx" "github.com/zeromicro/go-zero/core/logx"
"youtu_server/game_open_api/internal/svc"
) )
type GetEcpmLogic struct { type GetEcpmLogic struct {

View File

@ -2,8 +2,8 @@ package game
import ( import (
"context" "context"
"youtu_server/game_open_api/internal/svc" "gitea.youtukeji.com.cn/xiabin/youtu_server/game_open_api/internal/svc"
"youtu_server/game_open_api/internal/types" "gitea.youtukeji.com.cn/xiabin/youtu_server/game_open_api/internal/types"
"github.com/zeromicro/go-zero/core/logx" "github.com/zeromicro/go-zero/core/logx"
) )

View File

@ -3,11 +3,11 @@ package game
import ( import (
"context" "context"
"errors" "errors"
"gitea.youtukeji.com.cn/xiabin/youtu_server/game_open_api/model"
"github.com/zeromicro/go-zero/core/stores/sqlc" "github.com/zeromicro/go-zero/core/stores/sqlc"
"youtu_server/game_open_api/model"
"youtu_server/game_open_api/internal/svc" "gitea.youtukeji.com.cn/xiabin/youtu_server/game_open_api/internal/svc"
"youtu_server/game_open_api/internal/types" "gitea.youtukeji.com.cn/xiabin/youtu_server/game_open_api/internal/types"
"github.com/zeromicro/go-zero/core/logx" "github.com/zeromicro/go-zero/core/logx"
) )

View File

@ -3,13 +3,13 @@ package wechat
import ( import (
"context" "context"
"errors" "errors"
"gitea.youtukeji.com.cn/xiabin/youtu_server/game_open_api/internal/app_api_helper"
"gitea.youtukeji.com.cn/xiabin/youtu_server/game_open_api/model"
"github.com/golang-jwt/jwt/v4" "github.com/golang-jwt/jwt/v4"
"time" "time"
"youtu_server/game_open_api/internal/app_api_helper"
"youtu_server/game_open_api/model"
"youtu_server/game_open_api/internal/svc" "gitea.youtukeji.com.cn/xiabin/youtu_server/game_open_api/internal/svc"
"youtu_server/game_open_api/internal/types" "gitea.youtukeji.com.cn/xiabin/youtu_server/game_open_api/internal/types"
"github.com/zeromicro/go-zero/core/logx" "github.com/zeromicro/go-zero/core/logx"
) )

View File

@ -4,9 +4,9 @@ import (
"context" "context"
"encoding/json" "encoding/json"
"errors" "errors"
"gitea.youtukeji.com.cn/xiabin/youtu_server/game_open_api/internal/config"
"gitea.youtukeji.com.cn/xiabin/youtu_server/game_open_api/model"
"github.com/zeromicro/go-zero/core/stores/sqlx" "github.com/zeromicro/go-zero/core/stores/sqlx"
"youtu_server/game_open_api/internal/config"
"youtu_server/game_open_api/model"
) )
type ServiceContext struct { type ServiceContext struct {

View File

@ -5,10 +5,10 @@ import (
"database/sql" "database/sql"
"errors" "errors"
"fmt" "fmt"
"gitea.youtukeji.com.cn/xiabin/youtu_server/game_open_api/internal/types"
"github.com/zeromicro/go-zero/core/stores/cache" "github.com/zeromicro/go-zero/core/stores/cache"
"github.com/zeromicro/go-zero/core/stores/sqlc" "github.com/zeromicro/go-zero/core/stores/sqlc"
"github.com/zeromicro/go-zero/core/stores/sqlx" "github.com/zeromicro/go-zero/core/stores/sqlx"
"youtu_server/game_open_api/internal/types"
) )
var _ GameScoreModel = (*customGameScoreModel)(nil) var _ GameScoreModel = (*customGameScoreModel)(nil)

2
go.mod
View File

@ -1,4 +1,4 @@
module youtu_server module gitea.youtukeji.com.cn/xiabin/youtu_server
go 1.23.4 go 1.23.4