update go module to gitea.youtukeji.com.cn/xiabin/youtu_server
This commit is contained in:
parent
1fba083683
commit
7a1c79486c
@ -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"
|
||||||
|
@ -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
|
||||||
|
@ -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 {
|
||||||
|
@ -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 {
|
||||||
|
@ -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 {
|
||||||
|
@ -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 {
|
||||||
|
@ -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 {
|
||||||
|
@ -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"
|
||||||
)
|
)
|
||||||
|
@ -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 {
|
||||||
|
@ -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"
|
||||||
)
|
)
|
||||||
|
@ -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"
|
||||||
)
|
)
|
||||||
|
@ -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 {
|
||||||
|
@ -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"
|
||||||
)
|
)
|
||||||
|
@ -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"
|
||||||
)
|
)
|
||||||
|
@ -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"
|
||||||
)
|
)
|
||||||
|
@ -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 {
|
||||||
|
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user