diff --git a/game_open_api/gameOpenApi-Api.go b/game_open_api/gameOpenApi-Api.go index 8025718..2d7e7ee 100644 --- a/game_open_api/gameOpenApi-Api.go +++ b/game_open_api/gameOpenApi-Api.go @@ -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" diff --git a/game_open_api/internal/app_api_helper/app_api_helper.go b/game_open_api/internal/app_api_helper/app_api_helper.go index d7a22c6..646b23c 100644 --- a/game_open_api/internal/app_api_helper/app_api_helper.go +++ b/game_open_api/internal/app_api_helper/app_api_helper.go @@ -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 diff --git a/game_open_api/internal/handler/app_user/appUserSetUserHandler.go b/game_open_api/internal/handler/app_user/appUserSetUserHandler.go index 1b9bdfa..7a64f35 100644 --- a/game_open_api/internal/handler/app_user/appUserSetUserHandler.go +++ b/game_open_api/internal/handler/app_user/appUserSetUserHandler.go @@ -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 { diff --git a/game_open_api/internal/handler/douyin/douyinCode2tokenHandler.go b/game_open_api/internal/handler/douyin/douyinCode2tokenHandler.go index abac0a5..0c474c1 100644 --- a/game_open_api/internal/handler/douyin/douyinCode2tokenHandler.go +++ b/game_open_api/internal/handler/douyin/douyinCode2tokenHandler.go @@ -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 { diff --git a/game_open_api/internal/handler/douyin/getEcpmHandler.go b/game_open_api/internal/handler/douyin/getEcpmHandler.go index a00de52..d4e034b 100644 --- a/game_open_api/internal/handler/douyin/getEcpmHandler.go +++ b/game_open_api/internal/handler/douyin/getEcpmHandler.go @@ -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 { diff --git a/game_open_api/internal/handler/game/rankingListHandler.go b/game_open_api/internal/handler/game/rankingListHandler.go index a4a3ef1..44c486f 100644 --- a/game_open_api/internal/handler/game/rankingListHandler.go +++ b/game_open_api/internal/handler/game/rankingListHandler.go @@ -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 { diff --git a/game_open_api/internal/handler/game/rankingSetScoreHandler.go b/game_open_api/internal/handler/game/rankingSetScoreHandler.go index d76ab73..f702bb6 100644 --- a/game_open_api/internal/handler/game/rankingSetScoreHandler.go +++ b/game_open_api/internal/handler/game/rankingSetScoreHandler.go @@ -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 { diff --git a/game_open_api/internal/handler/routes.go b/game_open_api/internal/handler/routes.go index 695c29d..8a877fc 100644 --- a/game_open_api/internal/handler/routes.go +++ b/game_open_api/internal/handler/routes.go @@ -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" ) diff --git a/game_open_api/internal/handler/wechat/wechatCode2UserIdHandler.go b/game_open_api/internal/handler/wechat/wechatCode2UserIdHandler.go index 1464584..01ea9e0 100644 --- a/game_open_api/internal/handler/wechat/wechatCode2UserIdHandler.go +++ b/game_open_api/internal/handler/wechat/wechatCode2UserIdHandler.go @@ -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 { diff --git a/game_open_api/internal/logic/app_user/appUserSetUserLogic.go b/game_open_api/internal/logic/app_user/appUserSetUserLogic.go index 9bdec9b..a31f0f5 100644 --- a/game_open_api/internal/logic/app_user/appUserSetUserLogic.go +++ b/game_open_api/internal/logic/app_user/appUserSetUserLogic.go @@ -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" ) diff --git a/game_open_api/internal/logic/douyin/douyinCode2tokenLogic.go b/game_open_api/internal/logic/douyin/douyinCode2tokenLogic.go index b746269..b9cef06 100644 --- a/game_open_api/internal/logic/douyin/douyinCode2tokenLogic.go +++ b/game_open_api/internal/logic/douyin/douyinCode2tokenLogic.go @@ -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" ) diff --git a/game_open_api/internal/logic/douyin/getEcpmLogic.go b/game_open_api/internal/logic/douyin/getEcpmLogic.go index 932883f..773738c 100644 --- a/game_open_api/internal/logic/douyin/getEcpmLogic.go +++ b/game_open_api/internal/logic/douyin/getEcpmLogic.go @@ -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 { diff --git a/game_open_api/internal/logic/game/rankingListLogic.go b/game_open_api/internal/logic/game/rankingListLogic.go index bb9166a..f2b627d 100644 --- a/game_open_api/internal/logic/game/rankingListLogic.go +++ b/game_open_api/internal/logic/game/rankingListLogic.go @@ -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" ) diff --git a/game_open_api/internal/logic/game/rankingSetScoreLogic.go b/game_open_api/internal/logic/game/rankingSetScoreLogic.go index 73e20f5..2401864 100644 --- a/game_open_api/internal/logic/game/rankingSetScoreLogic.go +++ b/game_open_api/internal/logic/game/rankingSetScoreLogic.go @@ -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" ) diff --git a/game_open_api/internal/logic/wechat/wechatCode2UserIdLogic.go b/game_open_api/internal/logic/wechat/wechatCode2UserIdLogic.go index 83c4054..42e6a9c 100644 --- a/game_open_api/internal/logic/wechat/wechatCode2UserIdLogic.go +++ b/game_open_api/internal/logic/wechat/wechatCode2UserIdLogic.go @@ -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" ) diff --git a/game_open_api/internal/svc/serviceContext.go b/game_open_api/internal/svc/serviceContext.go index 6b5d119..31b4aa7 100644 --- a/game_open_api/internal/svc/serviceContext.go +++ b/game_open_api/internal/svc/serviceContext.go @@ -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 { diff --git a/game_open_api/model/gamescoremodel.go b/game_open_api/model/gamescoremodel.go index 4ad2694..3476eef 100644 --- a/game_open_api/model/gamescoremodel.go +++ b/game_open_api/model/gamescoremodel.go @@ -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) diff --git a/go.mod b/go.mod index e908fca..b425f42 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module youtu_server +module gitea.youtukeji.com.cn/xiabin/youtu_server go 1.23.4