31 lines
662 B
Go
31 lines
662 B
Go
|
package douyin
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
|
||
|
"youtu_server/game_open_api/internal/svc"
|
||
|
"youtu_server/game_open_api/internal/types"
|
||
|
|
||
|
"github.com/zeromicro/go-zero/core/logx"
|
||
|
)
|
||
|
|
||
|
type DouyinCode2tokenLogic struct {
|
||
|
logx.Logger
|
||
|
ctx context.Context
|
||
|
svcCtx *svc.ServiceContext
|
||
|
}
|
||
|
|
||
|
func NewDouyinCode2tokenLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DouyinCode2tokenLogic {
|
||
|
return &DouyinCode2tokenLogic{
|
||
|
Logger: logx.WithContext(ctx),
|
||
|
ctx: ctx,
|
||
|
svcCtx: svcCtx,
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func (l *DouyinCode2tokenLogic) DouyinCode2token(req *types.DouyinCode2TokenRequest) (resp *types.Auth, err error) {
|
||
|
// todo: add your logic here and delete this line
|
||
|
|
||
|
return
|
||
|
}
|