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 (
"flag"
"fmt"
"youtu_server/game_open_api/internal/config"
"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/config"
"gitea.youtukeji.com.cn/xiabin/youtu_server/game_open_api/internal/handler"
"gitea.youtukeji.com.cn/xiabin/youtu_server/game_open_api/internal/svc"
"github.com/zeromicro/go-zero/core/conf"
"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/youtu_ecpm/pkg/douyinapi"
"gitea.youtukeji.com.cn/xiabin/youtu_ecpm/pkg/wechat_api"
"gitea.youtukeji.com.cn/xiabin/youtu_server/game_open_api/model"
"sync"
"youtu_server/game_open_api/model"
)
var once sync.Once

View File

@ -3,10 +3,10 @@ package app_user
import (
"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"
"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 {

View File

@ -3,10 +3,10 @@ package douyin
import (
"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"
"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 {

View File

@ -3,9 +3,9 @@ package douyin
import (
"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"
"youtu_server/game_open_api/internal/logic/douyin"
"youtu_server/game_open_api/internal/svc"
)
func GetEcpmHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {

View File

@ -3,9 +3,9 @@ package game
import (
"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"
"youtu_server/game_open_api/internal/logic/game"
"youtu_server/game_open_api/internal/svc"
)
func RankingListHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {

View File

@ -3,10 +3,10 @@ package game
import (
"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"
"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 {

View File

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

View File

@ -3,10 +3,10 @@ package wechat
import (
"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"
"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 {

View File

@ -2,10 +2,10 @@ package app_user
import (
"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"
"youtu_server/game_open_api/internal/types"
"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/core/logx"
)

View File

@ -2,13 +2,13 @@ package douyin
import (
"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"
"time"
"youtu_server/game_open_api/internal/app_api_helper"
"youtu_server/game_open_api/model"
"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/svc"
"gitea.youtukeji.com.cn/xiabin/youtu_server/game_open_api/internal/types"
"github.com/zeromicro/go-zero/core/logx"
)

View File

@ -2,11 +2,11 @@ package douyin
import (
"context"
"gitea.youtukeji.com.cn/xiabin/youtu_server/game_open_api/internal/app_api_helper"
"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"
"youtu_server/game_open_api/internal/svc"
)
type GetEcpmLogic struct {

View File

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

View File

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

View File

@ -3,13 +3,13 @@ package wechat
import (
"context"
"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"
"time"
"youtu_server/game_open_api/internal/app_api_helper"
"youtu_server/game_open_api/model"
"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/svc"
"gitea.youtukeji.com.cn/xiabin/youtu_server/game_open_api/internal/types"
"github.com/zeromicro/go-zero/core/logx"
)

View File

@ -4,9 +4,9 @@ import (
"context"
"encoding/json"
"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"
"youtu_server/game_open_api/internal/config"
"youtu_server/game_open_api/model"
)
type ServiceContext struct {

View File

@ -5,10 +5,10 @@ import (
"database/sql"
"errors"
"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/sqlc"
"github.com/zeromicro/go-zero/core/stores/sqlx"
"youtu_server/game_open_api/internal/types"
)
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